|
SupportVectorMachineFromWeights Method
|
Namespace:
Accord.MachineLearning.VectorMachines
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax public static SupportVectorMachine FromWeights(
double[] weights,
int interceptIndex = -1
)
Public Shared Function FromWeights (
weights As Double(),
Optional interceptIndex As Integer = -1
) As SupportVectorMachine
Request Example
View SourceParameters
- weights
- 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