Click or drag to resize
Accord.NET (logo)

GeneralizedLinearRegressionGetLogLikelihoodRatio Method (Double, Double, Double, GeneralizedLinearRegression)

Gets the Log-Likelihood Ratio between two models.

Namespace:  Accord.Statistics.Models.Regression
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double GetLogLikelihoodRatio(
	double[][] input,
	double[] output,
	double[] weights,
	GeneralizedLinearRegression regression
)
Request Example View Source

Parameters

input
Type: SystemDouble
A set of input data.
output
Type: SystemDouble
A set of output data.
weights
Type: SystemDouble
The weights associated with each input vector.
regression
Type: Accord.Statistics.Models.RegressionGeneralizedLinearRegression
Another Logistic Regression model.

Return Value

Type: Double
The Log-Likelihood ratio (a measure of performance between two models) calculated over the given data sets.
Remarks
The Log-Likelihood ratio is defined as 2*(LL - LL0).
See Also