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
Syntax
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