PolynomialKernelSelector<T>

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

Polynomial Kernel based Feature Selection.

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

Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>

For Beginners

The polynomial kernel can detect relationships that are polynomial in nature (like x^2, x*y, etc.). This selector finds features that have strong polynomial relationships with the target.

How It Works

Selects features based on their importance in a polynomial kernel space, capturing polynomial relationships with the target.

Constructors

Constructor Summary
PolynomialKernelSelector(int nFeaturesToSelect, int degree, double coef0, int[] columnIndices)

Properties

Property Summary
Vector<T> KernelScores { get; }
bool SupportsInverseTransform { get; }
double Coef0 { get; }
int Degree { 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)