Quadratic Discriminant Analysis.Group Covariances Property
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
public Matrix<double>[] GroupCovariances { get; }Property Value
Matrix<Double>[]Remarks
The group covariances are the class-specific covariance matrices estimated from the training data. Each matrix captures the variance and correlation structure of the features within its corresponding class.
Unlike linear discriminant analysis which assumes equal covariance matrices across classes, QDA estimates separate covariance matrices for each class. This allows the model to capture class-specific feature relationships and variances, making it more flexible but requiring more parameters to be estimated.
This property is only available when the model is fitted. It throws an InvalidOperationException if the model is empty or deployed.