The epsilon-SVR / nu-SVR formulation of the kernel matrix: the kernel matrix is expanded to twice of the sample size so that the two slack variables of each sample can be handled at the same time.
SVR_Q
01 Syntax
Microsoft.VisualBasic.MachineLearning.SVM.SVR_Q
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Create the epsilon-SVR / nu-SVR formulation of the kernel matrix. |
| SwapIndex | 1 | Swap the position of the two samples in the expanded kernel matrix, the sign values, the sample indices and the diagonal elements are swapped at the same time. |
| GetQ | 1 | Request a column of the expanded kernel matrix, the result is reordered by the sign value of the slack variables. |
| GetQD | 1 | Gets the diagonal elements of the expanded kernel matrix. |
03 Members
Create the epsilon-SVR / nu-SVR formulation of the kernel matrix.
Parameters
SwapIndex(
Int32, Int32)Swap the position of the two samples in the expanded kernel matrix, the sign values, the sample indices and the diagonal elements are swapped at the same time.
Parameters
| Name | Type | Description |
|---|---|---|
i | Int32 | The zero based index of the first sample variable. |
j | Int32 | The zero based index of the second sample variable. |
GetQ(
Int32, Int32)Request a column of the expanded kernel matrix, the result is reordered by the sign value of the slack variables.
Parameters
| Name | Type | Description |
|---|---|---|
i | Int32 | The zero based index of the target row. |
len | Int32 | The number of the elements that will be requested. |
Returns
An array which contains the requested elements of the target column.
GetQD
Gets the diagonal elements of the expanded kernel matrix.
Returns
An array which contains the diagonal elements Q(i, i).