LocalDensitySelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Density
Local Density based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ LocalDensitySelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Local density measures how crowded the area around each data point is. Features that create clear differences in local density between classes help separate the data better.
How It Works
Selects features based on their contribution to local density patterns, identifying features that create meaningful local neighborhoods.
Constructors
| Constructor | Summary |
|---|---|
LocalDensitySelector(int nFeaturesToSelect, int nNeighbors, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> DensityScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int NNeighbors { 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) |