R/getParamSet.R

Defines functions getParamSet.Learner getParamSet.character

#' @title Get a description of all possible parameter settings for a learner.
#'
#' @description
#' Returns the \code{\link[ParamHelpers]{ParamSet}} from a \code{\link{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)
}
guillermozbta/s2 documentation built on May 17, 2019, 4:01 p.m.