WilcoxonSelector<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Supervised
Wilcoxon Rank-Sum Test Feature Selection.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → WilcoxonSelector<T>
Implements: IFixedCountFeatureSelector<T>, ISupervisedFeatureSelector<T>
For Beginners
The Wilcoxon test is a non-parametric test that checks if one group tends to have larger values than another by comparing ranks. It’s robust and doesn’t assume your data follows any particular distribution.
How It Works
Uses the Wilcoxon rank-sum test (Mann-Whitney U test) to select features that show significant differences between classes without assuming normal distributions.
Constructors
| Constructor | Summary |
|---|---|
WilcoxonSelector(int nFeaturesToSelect, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> TestStatistics { 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) |