R/getTuneResult.R

Defines functions getTuneResult

Documented in getTuneResult

#' Returns the optimal hyperparameters and optimization path after training.
#'
#' @param object ([WrappedModel])\cr
#'   Trained Model created with [makeTuneWrapper].
#' @return ([TuneResult]).
#' @family tune
#' @export
getTuneResult = function(object) {
  assertClass(object, "TuneModel")
  object$learner.model$opt.result
}

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.