Click or drag to resize
Accord.NET (logo)

SupportVectorMachineTKernelToWeights Method

Converts a Linear-kernel machine into an array of linear coefficients. The first position in the array is the Threshold value. If this machine is not linear, an exception will be thrown.

Namespace:  Accord.MachineLearning.VectorMachines
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public override double[] ToWeights()
Request Example View Source

Return Value

Type: Double
An array of linear coefficients representing this machine.
Exceptions
ExceptionCondition
InvalidOperationException Thrown if the kernel function is not Linear.
See Also