SilhouetteBasedSelector<T>

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

Silhouette Score based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

The silhouette score measures how similar a point is to its own cluster versus other clusters. Features that give high silhouette scores create well-separated, tight clusters.

How It Works

Selects features that maximize the silhouette score of clusters, indicating how well clusters are separated and cohesive.

Constructors

Constructor Summary
SilhouetteBasedSelector(int nFeaturesToSelect, int[] columnIndices)

Properties

Property Summary
Vector<T> SilhouetteScores { get; }
bool SupportsInverseTransform { 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)