KDESelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Density
Kernel Density Estimation (KDE) based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ KDESelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
KDE estimates how data points are spread out. Features where different classes have clearly separate density patterns are better for classification.
How It Works
Selects features based on how well their density distributions separate between different classes.
Constructors
| Constructor | Summary |
|---|---|
KDESelector(int nFeaturesToSelect, double bandwidth, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> SeparationScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
double Bandwidth { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
Matrix<T> FitTransform(Matrix<T> data, Vector<T> target) |
|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |
|
void Fit(Matrix<T> data, Vector<T> target) |