CoefficientOfVariation<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter

Coefficient of Variation (CV) for unsupervised feature selection.

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

Implements: IFixedCountFeatureSelector<T>

For Beginners

Some features barely change across samples (low CV), while others vary a lot (high CV). Features that don’t change much probably can’t distinguish between different outcomes. CV is useful when features are on different scales, because it measures relative variation.

How It Works

The coefficient of variation is the ratio of standard deviation to mean, expressed as a percentage. Features with low CV have relatively little variation and may not be informative.

Constructors

Constructor Summary
CoefficientOfVariation(int nFeaturesToSelect, double minCV, int[] columnIndices)

Properties

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

Methods

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