SCADSelector<T>

Models & Types · AiDotNet.Preprocessing.FeatureSelection.Embedded

Smoothly Clipped Absolute Deviation (SCAD) for feature selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

SCAD is like an improved version of Lasso. Lasso tends to shrink all coefficients, even important ones. SCAD lets truly important features keep their full strength while still zeroing out unimportant ones. This gives you better feature selection with less bias.

How It Works

SCAD is a nonconvex penalty that reduces bias for large coefficients while maintaining sparsity. Unlike Lasso, SCAD doesn’t overshrink large coefficients, providing near-unbiased estimates for significant features.

Constructors

Constructor Summary
SCADSelector(int nFeaturesToSelect, double lambda, double a, int maxIterations, double tolerance, int[] columnIndices)

Properties

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