Package: mlr3tuning Check: examples New result: ERROR Running examples in ‘mlr3tuning-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: mlr_tuners_cmaes > ### Title: Hyperparameter Tuning with Covariance Matrix Adaptation > ### Evolution Strategy > ### Aliases: mlr_tuners_cmaes TunerBatchCmaes > > ### ** Examples > > # example only runs if adagio is available > if (mlr3misc::require_namespaces("adagio", quietly = TRUE)) { + # Hyperparameter Optimization + + # load learner and set search space + learner = lrn("classif.rpart", + cp = to_tune(1e-04, 1e-1, logscale = TRUE), + minsplit = to_tune(p_dbl(2, 128, trafo = as.integer)), + minbucket = to_tune(p_dbl(1, 64, trafo = as.integer)) + ) + + # run hyperparameter tuning on the Palmer Penguins data set + instance = tune( + tuner = tnr("cmaes"), + task = tsk("penguins"), + learner = learner, + resampling = rsmp("holdout"), + measure = msr("classif.ce"), + term_evals = 10) + + # best performing hyperparameter configuration + instance$result + + # all evaluated hyperparameter configuration + as.data.table(instance$archive) + + # fit final model on complete data set + learner$param_set$values = instance$result_learner_param_vals + learner$train(tsk("penguins")) + } Warning: Package 'libcmaesr' required but not installed for Optimizer '' Warning: Package 'libcmaesr' required but not installed for Tuner '' Error: The following packages could not be loaded: libcmaesr Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed mlr3tuning.one_se_rule 4.955 0.088 5.044