addMlrTunedLearner = function(reg, id, par.set, control, rdesc) {
addAlgorithm(reg, id, fun=function(static, dynamic, ...) {
id = sprintf("classif.%s", id)
lrn = makeLearner(id)
lrn = makeTuneWrapper(lrn, par.set=par.set, resampling=rdesc, control=control)
resample(lrn, task=static$task, resampling=dynamic$rin)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.