|
LogisticRegressionFromWeights Method (Double, Double)
|
Constructs a new
LogisticRegression from
an array of weights (linear coefficients). The first
weight is interpreted as the intercept value.
Namespace:
Accord.Statistics.Models.Regression
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static LogisticRegression FromWeights(
double[] weights,
double intercept
)
Public Shared Function FromWeights (
weights As Double(),
intercept As Double
) As LogisticRegression
Request Example
View SourceParameters
- weights
- Type: SystemDouble
An array of linear coefficients. - intercept
- Type: SystemDouble
The intercept term.
Return Value
Type:
LogisticRegression
A
LogisticRegression whose
Coefficients are
the same as in the given
weights array.
See Also