if (FALSE) { # rlang::is_installed(c("xgboost", "RhpcBLASctl", "data.table"))
# \dontshow{
data.table::setDTthreads(2)
RhpcBLASctl::blas_set_num_threads(2)
RhpcBLASctl::omp_set_num_threads(2)
# }
example_gt <- load_example_gt("gen_tbl")
# Impute the gen_tibble
example_gt <- example_gt %>% gt_impute_xgboost()
# And we can check it has been imputed
example_gt %>% gt_has_imputed()
}
Run the code above in your browser using DataLab