Click or drag to resize
Accord.NET (logo)

LogisticRegressionAnalysisCompute Method (Double, Int32)

Note: This API is now obsolete.

Computes the Logistic Regression Analysis.

Namespace:  Accord.Statistics.Analysis
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
[ObsoleteAttribute("Please set up the Iterations and Tolerance properties and call Learn() instead.")]
public bool Compute(
	double limit = 1E-05,
	int maxIterations = 50
Request Example View Source


limit (Optional)
Type: SystemDouble
The difference between two iterations of the regression algorithm when the algorithm should stop. If not specified, the value of 1e-5 will be used. The difference is calculated based on the largest absolute parameter change of the regression.
maxIterations (Optional)
Type: SystemInt32
The maximum number of iterations to be performed by the regression algorithm.

Return Value

Type: Boolean
True if the model converged, false otherwise.
The likelihood surface for the logistic regression learning is convex, so there will be only one peak. Any local maxima will be also a global maxima.
See Also