Q matrices for various formulations
SVC_Q
01 Syntax
Microsoft.VisualBasic.MachineLearning.SVM.SVC_Q
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Create the C-SVC / nu-SVC formulation of the kernel matrix. |
| GetQ | 1 | Request a column of the kernel matrix, the value is multiplied by the sign of the class labels: Q(i, j) = y_i * y_j * K(x_i, x_j). |
| GetQD | 1 | Gets the diagonal elements of the kernel matrix. |
| SwapIndex | 1 | Swap the position of the two samples in the kernel matrix, the cached columns, the class labels and the diagonal elements are swapped at the same time. |
03 Members
Create the C-SVC / nu-SVC formulation of the kernel matrix.
Parameters
GetQ(
Int32, Int32)Request a column of the kernel matrix, the value is multiplied by the sign of the class labels: Q(i, j) = y_i y_j K(x_i, x_j).
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 first len elements of the target column.
GetQD
Gets the diagonal elements of the kernel matrix.
Returns
An array which contains the diagonal elements Q(i, i).
SwapIndex(
Int32, Int32)Swap the position of the two samples in the kernel matrix, the cached columns, the class labels and the diagonal elements are swapped at the same time.
Parameters
| Name | Type | Description |
|---|---|---|
i | Int32 | The zero based index of the first sample. |
j | Int32 | The zero based index of the second sample. |