# NOT RUN {
at = auto_tuner(
method = "random_search",
learner = lrn("classif.rpart", cp = to_tune(1e-04, 1e-1, logscale = TRUE)),
resampling = rsmp ("holdout"),
measure = msr("classif.ce"),
term_evals = 4)
at$train(tsk("pima"))
# }
Run the code above in your browser using DataLab