Click or drag to resize
Accord.NET (logo)

SupportVectorMachineFromWeights Method

Creates a new linear SupportVectorMachine with the given set of linear weights.

Namespace:  Accord.MachineLearning.VectorMachines
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public static SupportVectorMachine FromWeights(
	double[] weights,
	int interceptIndex = -1
Request Example View Source


Type: SystemDouble
The machine's linear coefficients.
interceptIndex (Optional)
Type: SystemInt32
The index of the intercept term in the given weights vector.

Return Value

Type: SupportVectorMachine
A SupportVectorMachine whose linear coefficients are defined by the given weights vector.
See Also