Click or drag to resize
Accord.NET (logo)

LogisticRegressionFromWeights Method (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
public static LogisticRegression FromWeights(
	double[] weights
Request Example View Source


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