MissingValueRatio<T>
Models & Types · AiDotNet.Preprocessing.FeatureSelection.Unsupervised
Missing Value Ratio filter for removing features with too many missing values.
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → MissingValueRatio<T>
Implements: IFeatureSelector<T>
For Beginners
Features with many missing values are unreliable. If more than X% of a feature’s values are missing, it’s often better to remove it entirely rather than try to impute the missing data.
How It Works
Removes features where the proportion of missing values exceeds a threshold. Missing values are identified as NaN, infinity, or optionally a specified sentinel value.
Constructors
| Constructor | Summary |
|---|---|
MissingValueRatio(double threshold, double? missingIndicator, int[] columnIndices) |
Properties
| Property | Summary |
|---|---|
Vector<T> MissingRatios { get; } |
|
bool SupportsInverseTransform { get; } |
|
double Threshold { get; } |
|
int[] SelectedIndices { get; } |
Methods
| Method | Summary |
|---|---|
Matrix<T> FitTransform(Matrix<T> data) |
|
bool[] GetSupportMask() |
|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |