WilcoxonSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Filter.Statistical
Wilcoxon Rank-Sum (Mann-Whitney U) test for feature selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → WilcoxonSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
Instead of comparing averages, this test ranks all values and checks if one group tends to have higher ranks than the other. It works even when data isn’t normally distributed or has outliers.
How It Works
The Wilcoxon test is a non-parametric alternative to the t-test. It compares the ranks of values rather than the values themselves, making it robust to outliers and non-normal distributions.
Constructors
| Constructor | Summary |
|---|---|
WilcoxonSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> UStatistics { get; } |
|
bool SupportsInverseTransform { 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) |