LaplacianScoreSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Manifold

Laplacian Score Feature Selection.

Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → LaplacianScoreSelector<T>

Implements: IFixedCountFeatureSelector<T>

For Beginners

The Laplacian score measures how much a feature changes between nearby points. Features that are smooth (don’t change much between neighbors) have low Laplacian scores and are considered more important for preserving local structure.

How It Works

Uses the Laplacian Score to select features that best preserve the local structure of the data. Features with lower Laplacian scores are considered more important.

Constructors

Constructor Summary
LaplacianScoreSelector(int nFeaturesToSelect, int nNeighbors, double sigma, int[] columnIndices)

Properties

Property Summary
Vector<T> LaplacianScores { get; }
bool SupportsInverseTransform { get; }
int NFeaturesToSelect { get; }
int[] SelectedIndices { get; }

Methods

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