Click or drag to resize
Accord.NET (logo)

LogisticRegressionAnalysisLearn Method (Double, Int32, Int32)

Learns a model that can map the given inputs to the given outputs.

Namespace:  Accord.Statistics.Analysis
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public LogisticRegression Learn(
	double[][] x,
	int[] positives,
	int[] negatives
)
Request Example View Source

Parameters

x
Type: SystemDouble
The model inputs.
positives
Type: SystemInt32
The number of positives labels for each input vector.
negatives
Type: SystemInt32
The number of negative labels for each input vector.

Return Value

Type: LogisticRegression
A LogisticRegressionAnalysis created from the given summary data.
See Also