man-roxygen/example.R

<%
lrn = mlr3::lrn(id)
%>
#' @examples
#' if (requireNamespace("<%= lrn$packages %>")) {
#'   learner = mlr3::lrn("<%= id %>")
#'   print(learner)
#'
#'   # available parameters:
#'   learner$param_set$ids()
#' }
mlr3learners/mlr3learners.np documentation built on July 29, 2020, 3:17 a.m.