StabilitySelectionSelector<T>

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

Stability Selection based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Stability selection repeatedly subsamples the data and performs feature selection on each subsample. Features that are consistently selected across many subsamples are more reliable.

How It Works

Selects features based on their selection stability across multiple subsamples of the data, ensuring robust feature selection.

Constructors

Constructor Summary
StabilitySelectionSelector(int nFeaturesToSelect, int nSubsamples, double subsampleRatio, int? randomState, int[] columnIndices)

Properties

Property Summary
Vector<T> StabilityScores { get; }
bool SupportsInverseTransform { get; }
double SubsampleRatio { get; }
int NFeaturesToSelect { get; }
int NSubsamples { 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)