BootstrapStabilitySelector<T>

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

Bootstrap Stability-based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Bootstrap means taking many random samples (with replacement) from your data. This method runs feature selection on each sample and counts how often each feature is selected. Features that are consistently selected are more reliable choices.

How It Works

Uses bootstrap sampling to assess the stability of feature selection, selecting features that are consistently chosen across multiple bootstrap samples.

Constructors

Constructor Summary
BootstrapStabilitySelector(int nFeaturesToSelect, int nBootstraps, double threshold, int[] columnIndices)

Properties

Property Summary
Vector<T> SelectionProbabilities { 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)