BisectingKMeansSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Statistical
Bisecting K-Means Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ BisectingKMeansSelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
Bisecting K-means repeatedly splits the largest cluster into two parts. We apply this to features (treating each feature as a data point) and select representatives from different branches of the resulting tree, ensuring diverse feature coverage.
How It Works
Uses bisecting K-means clustering to hierarchically cluster features, selecting representative features from each cluster branch.
Constructors
| Constructor | Summary |
|---|---|
BisectingKMeansSelector(int nFeaturesToSelect, int nIterations, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FeatureScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |