TrendSelector<T>

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

Trend based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>

For Beginners

Some features have trends - they consistently go up or down over time. This selector finds features with strong trends, which can be useful for forecasting applications.

How It Works

Selects features based on the strength of their temporal trends, identifying features with clear increasing or decreasing patterns.

Constructors

Constructor Summary
TrendSelector(int nFeaturesToSelect, int[] columnIndices)

Properties

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

Methods

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