Home > @josh-brown/vector > LinearKernel
A linear kernel for use in a SupportVectorMachineClassifier. The linear kernel converts a data Matrix into a matrix which has been prepended with a column of all ones, representing the constant term in a linear model, or the bias term in an SVM.
Signature:
export declare function LinearKernel(data: Matrix): Matrix;|
Parameter |
Type |
Description |
|---|---|---|
|
data |
The variance of the gaussian distribution used in the kernel |
Returns: