powered by
Julia Equivalent: IAI.fit_predict!
IAI.fit_predict!
fit_predict(lnr, X, treatments, outcomes)
The learner or grid to use for imputation
The features of the data.
The treatment applied to each point in the data.
The outcome observed for each point in the data.
# NOT RUN { X <- iris X[1, 1] <- NA 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