Home Reference Source
import LinearKernel from '@jsmlt/jsmlt/src/kernel/linear.js'
public class | source

LinearKernel

Extends:

Kernel → LinearKernel

The linear kernel calculates the dot product of the two input vectors

Method Summary

Public Methods
public

apply(x: *, y: *): *

Inherited Summary

From class Kernel
public

Evaluate the kernel on a pair of data points

Public Methods

public apply(x: *, y: *): * source

Evaluate the kernel on a pair of data points

Override:

Kernel#apply

Params:

NameTypeAttributeDescription
x *
y *

Return:

*

See: