ANCOVASelector<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Statistical

ANCOVA (Analysis of Covariance) based Feature Selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ ANCOVASelector<T>

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

ANCOVA tests group differences while accounting for the effect of one or more continuous covariates. This helps isolate the true effect of categorical grouping by removing the influence of confounding variables. Features with significant adjusted F-statistics are selected.

How It Works

Selects features based on ANCOVA, which combines ANOVA with regression to control for confounding continuous covariates.

Constructors

Constructor Summary
ANCOVASelector(int nFeaturesToSelect, int covariateIndex, int[] columnIndices)

Properties

Property Summary
Vector<T> AdjustedFStatistics { get; }
bool SupportsInverseTransform { get; }
int CovariateIndex { get; }
int NFeaturesToSelect { get; }
int[] SelectedIndices { get; }

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data, Vector<T> target)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)
void Fit(Matrix<T> data, Vector<T> target)