GroupLassoSelector<T>

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

Group Lasso based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

Group Lasso extends Lasso by treating features in groups. Instead of selecting individual features, it selects entire groups at once. This is useful when features naturally belong together, like one-hot encoded categories or polynomial terms of the same variable.

How It Works

Selects features using Group Lasso regularization, which selects or removes entire groups of features together.

Constructors

Constructor Summary
GroupLassoSelector(int nFeaturesToSelect, double alpha, int[] groupAssignments, int maxIterations, int[] columnIndices)

Properties

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