NMFBasedSelector<T>
Models & Types ยท AiDotNet.Preprocessing.FeatureSelection.Projection
Non-negative Matrix Factorization (NMF) based Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> โ NMFBasedSelector<T>
Implements: IFixedCountFeatureSelector<T>
For Beginners
NMF breaks down your data into parts (like breaking a photo into its component patterns). Features that contribute most to these fundamental patterns are the most informative ones to keep. NMF is especially good when features represent non-negative quantities.
How It Works
Uses NMF to decompose the data matrix and selects features based on their contribution to the learned basis vectors.
Constructors
| Constructor | Summary |
|---|---|
NMFBasedSelector(int nFeaturesToSelect, int nComponents, int nIterations, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> FeatureScores { get; } |
|
bool SupportsInverseTransform { get; } |
|
int NFeaturesToSelect { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |