Click or drag to resize
Accord.NET (logo)

GeneralizedLinearRegressionFromLogisticRegression Method

Note: This API is now obsolete.

Creates a GeneralizedLinearRegression from a LogisticRegression object.

Namespace:  Accord.Statistics.Models.Regression
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
[ObsoleteAttribute("Simply cast the logistic regression to a GeneralizedLinearRegression instead, using Clone() if necessary.")]
public static GeneralizedLinearRegression FromLogisticRegression(
	LogisticRegression regression,
	bool makeCopy
)
Request Example View Source

Parameters

regression
Type: Accord.Statistics.Models.RegressionLogisticRegression
A LogisticRegression object.
makeCopy
Type: SystemBoolean
True to make a copy of the logistic regression values, false to use the actual values. If the actual values are used, changes done on one model will be reflected on the other model.

Return Value

Type: GeneralizedLinearRegression
A new GeneralizedLinearRegression which is a copy of the given LogisticRegression.
See Also