UniformitySelector<T>

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

Uniformity based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>

For Beginners

A uniform distribution has equal probability for all values in a range. This selector measures how close each feature is to being uniformly distributed. High uniformity means values are evenly spread out, while low uniformity means some values are much more common than others.

How It Works

Selects features based on how uniformly distributed their values are, using entropy as a measure of uniformity.

Constructors

Constructor Summary
UniformitySelector(int nFeaturesToSelect, int nBins, bool preferUniform, int[] columnIndices)

Properties

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

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)