IterativeImputer<T>
Models & Types · AiDotNet.Preprocessing.Imputers
Iterative imputer using the MICE algorithm (Multiple Imputation by Chained Equations).
Inheritance: TransformerBase<T, Matrix<T>, Matrix<T>> → IterativeImputer<T>
For Beginners
MICE creates multiple “guesses” for missing values by learning relationships between features. If taller people tend to be heavier, MICE can use height to predict missing weight values more accurately than simply using the average weight.
How It Works
IterativeImputer imputes missing values by modeling each feature with missing values as a function of other features, iterating multiple times until convergence.
The algorithm:
- Initial imputation (mean/median for each feature)
- For each feature with missing values:
- Train a regression model using other features as predictors
- Predict missing values using the trained model
- Repeat step 2 for multiple iterations until convergence
Constructors
| Constructor | Summary |
|---|---|
IterativeImputer(int maxIterations, double tolerance, IterativeImputerEstimator estimator, IterativeImputerInitialStrategy initialStrategy, int randomState, int[] columnIndices) |
Creates a new instance of IterativeImputer. |
Properties
| Property | Summary |
|---|---|
IterativeImputerEstimator Estimator { get; } |
Gets the estimator type used for imputation. |
IterativeImputerInitialStrategy InitialStrategy { get; } |
Gets the initial imputation strategy. |
bool SupportsInverseTransform { get; } |
Gets whether this transformer supports inverse transformation. |
double Tolerance { get; } |
Gets the convergence tolerance. |
int MaxIterations { get; } |
Gets the maximum number of iterations. |
Methods
| Method | Summary |
|---|---|
string[] GetFeatureNamesOut(string[] inputFeatureNames) |
Gets the output feature names after transformation. |