powered by
Fit an imputation model using the given features and impute the missing values in these features
fit_transform(lnr, X, ...)
The learner or grid to use for imputation
The features of the data.
Refer to the Julia documentation for available parameters.
Similar to calling fit followed by transform
fit
transform
Julia Equivalent: IAI.fit_transform!
IAI.fit_transform!
# NOT RUN { X <- iris X[1, 1] <- NA iai::iai_setup() grid <- iai::grid_search( iai::imputation_learner(), method = c("opt_knn", "opt_tree"), ) iai::fit_transform(grid, X) # }
Run the code above in your browser using DataLab