R/getParamSet.R

Defines functions getParamSet.character getParamSet.Learner

#' @title Get a description of all possible parameter settings for a learner.
#'
#' @description
#' Returns the [ParamHelpers::ParamSet] from a [Learner].
#'
#' @template ret_ps
#' @family learner
#' @name getParamSet
#' @rdname getParamSet
NULL

#' @export
getParamSet.Learner = function(x) {
  x$par.set
}

#' @export
getParamSet.character = function(x) {
  x = checkLearner(x)
  getParamSet(x)
}

Try the mlr package in your browser

Any scripts or data that you put into this service are public.

mlr documentation built on Sept. 29, 2022, 5:05 p.m.