RenyiEntropySelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Entropy
Renyi Entropy based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ RenyiEntropySelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
Renyi entropy is a family of entropy measures. With alpha=1, it equals Shannon entropy. Different alpha values emphasize different aspects of the distribution - low alpha focuses on rare events, high alpha on common events.
How It Works
Selects features based on their Renyi entropy, which generalizes Shannon entropy with a tunable parameter alpha.
Constructors
| Constructor | Summary |
|---|---|
RenyiEntropySelector(int nFeaturesToSelect, int nBins, double alpha, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> RenyiEntropies { get; } |
|
bool SupportsInverseTransform { get; } |
|
double Alpha { 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) |