R/zzz.R

Defines functions .onLoad

#' @import data.table
#' @import paradox
#' @import mlr3misc
#' @importFrom R6 R6Class
#' @importFrom mlr3 mlr_learners LearnerClassif LearnerRegr
"_PACKAGE"

.onLoad = function(libname, pkgname) {
  # nocov start
  # get mlr_learners dictionary from the mlr3 namespace
  x = utils::getFromNamespace("mlr_learners", ns = "mlr3")

  # add the learner to the dictionary
  x$add("classif.randomForest", LearnerClassifRandomForest)
} # nocov end
mlr3learners/mlr3learners.h2o documentation built on Nov. 8, 2019, 12:36 a.m.