Fit an imputation model using the given features and impute the missing values in these features
fit_transform(lnr, X, ...)
lnr |
The learner or grid to use for imputation |
X |
The features of the data. |
... |
Refer to the Julia documentation for available parameters. |
Julia Equivalent:
IAI.fit_transform!
X <- iris X[1, 1] <- NA grid <- iai::grid_search( iai::imputation_learner(), method = c("opt_knn", "opt_tree"), ) iai::fit_transform(grid, X)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.