Skip to content

Latest commit

 

History

History
54 lines (26 loc) · 1013 Bytes

File metadata and controls

54 lines (26 loc) · 1013 Bytes

Home > @josh-brown/vector > LinearKernel

LinearKernel() function

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;

Parameters

Parameter

Type

Description

data

Matrix

The variance of the gaussian distribution used in the kernel

Returns:

Matrix