ErosionDilationSelector<T>

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

Erosion/Dilation based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>

For Beginners

Morphological operations like erosion (shrinking) and dilation (expanding) reveal structural properties of data. Features that change significantly under these operations may capture important local patterns.

How It Works

Selects features based on morphological properties, measuring how feature values respond to erosion and dilation operations (local minimum/maximum filtering).

Constructors

Constructor Summary
ErosionDilationSelector(int nFeaturesToSelect, int windowSize, int[] columnIndices)

Properties

Property Summary
Vector<T> MorphologicalScores { get; }
bool SupportsInverseTransform { get; }
int NFeaturesToSelect { get; }
int WindowSize { get; }
int[] SelectedIndices { get; }

Methods

Method Summary
Matrix<T> FitTransform(Matrix<T> data)
bool[] GetSupportMask()
string[] GetFeatureNamesOut(string[] inputFeatureNames)