#' Construct registry for \pkg{mlr} benchmark experiments.
#'
#' \pkg{BatchExperimentsMlr} will always be added to the registry packages.
#' @param ... [any]\cr
#' See [\code{\link{ExperimentRegistry}}].
#' @param on.learner.error [\code{character(1)}]\cr
#' See [\code{\link[mlr]{configureMlr}}].
#' Default is \dQuote{stop}.
#' @param on.par.without.desc [\code{character(1)}]\cr
#' See [\code{\link[mlr]{configureMlr}}].
#' Default is \dQuote{stop}.
#' @param show.learner.output [\code{logical(1)}]\cr
#' See [\code{\link[mlr]{configureMlr}}].
#' Default is \code{TRUE}.
#' @return Nothing.
#' @export
#' @return [\code{\link{ExperimentRegistryMlr}}].
#' @export
#' @aliases ExperimentRegistryMlr
makeExperimentRegistryMlr = function(..., on.learner.error="stop", on.par.without.desc="stop" ,
show.learner.output=TRUE) {
args = list(...)
ps = "BatchExperimentsMlr"
packages = args$packages
if (!is.null(packages)) {
checkArg(packages, "character")
ps = union(ps, packages)
}
args$packages = ps
reg = do.call(makeExperimentRegistry, args)
class(reg) = c("ExperimentRegistryMlr", class(reg))
reg$on.learner.error = on.learner.error
reg$on.par.without.desc = on.par.without.desc
reg$show.learner.output = show.learner.output
# FIXME: we need to save here again, otherwise the stuff above is lost
# make internal function in BE
BatchJobs:::saveRegistry(reg)
return(reg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.