CompressionRatioSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Compression
Compression Ratio based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → CompressionRatioSelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
If a feature’s values can be described very briefly (highly compressible), it probably doesn’t contain much information. This selector keeps features that are harder to compress because they have more variety.
How It Works
Selects features based on their compressibility - features with higher entropy (less compressible) often contain more useful information.
Constructors
| Constructor | Summary |
|---|---|
CompressionRatioSelector(int nFeaturesToSelect, int nBins, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> EntropyScores { 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) |