ClusteringBasedFS<T>

Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Clustering

Clustering-based Feature Selection using feature grouping.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ†’ ClusteringBasedFS<T>

Implements: IFeatureSelector<T>

For Beginners

Sometimes features are very similar to each other (like height in inches vs height in cm). This method groups similar features together and picks one from each group. This way, you get diverse features without redundant information.

How It Works

Clusters similar features together and selects representative features from each cluster. This reduces redundancy by keeping diverse features that capture different aspects of the data.

Constructors

Constructor Summary
ClusteringBasedFS(int nClusters, int maxIterations, int[] columnIndices)

Properties

Property Summary
Vector<T> FeatureScores { get; }
bool SupportsInverseTransform { get; }
int NClusters { get; }
int[] ClusterAssignments { get; }
int[] SelectedIndices { get; }

Methods

Method Summary
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)