RegressionModel<T>.LogLikelihood Property

Gets the log-likelihood that the model generated the data.

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public double LogLikelihood { get; }

Property Value

Double

Remarks

This is the full log likelihood, including observation-dependent normalization terms. For grouped binomial GLMs, each row contributes its log binomial coefficient as well as the parameter-dependent kernel; case weights multiply the entire contribution.

This property is only available when the model is fitted. It throws an InvalidOperationException if the model is empty or deployed.

Exceptions

InvalidOperationException Thrown if the model is empty or deployed.

See Also