MaximalVariance<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Unsupervised

Maximal Variance feature selection for unsupervised learning.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → MaximalVariance<T>

Implements: IFixedCountFeatureSelector<T>

For Beginners

If a feature has the same value for all samples, it doesn’t help distinguish between them. Features that vary a lot are more informative. This method simply picks the features that change the most.

How It Works

Maximal Variance selects features with the highest variance. Features with higher variance contain more information and are more likely to be useful for distinguishing between samples.

Constructors

Constructor Summary
MaximalVariance(int nFeaturesToSelect, bool normalize, int[] columnIndices)

Properties

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

Methods

Method Summary
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)