Click or drag to resize
Accord.NET (logo)

LogisticRegressionFromWeights Method (Double)

Note: This API is now obsolete.

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.5.0
Syntax
[ObsoleteAttribute("Please also pass the intercept as the last argument of this function.")]
public static LogisticRegression FromWeights(
	double[] weights
)
Request Example View Source

Parameters

weights
Type: SystemDouble
An array of linear coefficients.

Return Value

Type: LogisticRegression
A LogisticRegression whose Coefficients are the same as in the given weights array.
See Also