R/LearnerRegrCVGlmnet.R

Defines functions plot.LearnerRegrCVGlmnet autoplot.LearnerRegrCVGlmnet

Documented in autoplot.LearnerRegrCVGlmnet

#' @rdname autoplot.LearnerClassifGlmnet
#' @export
autoplot.LearnerRegrCVGlmnet = function(object, ...) { # nolint
  plot_ggfortify(object, ...) +
    apply_theme(list(
      scale_color_viridis_d("Feature", end = 0.8),
      theme_mlr3()
    ))
}

#' @export
plot.LearnerRegrCVGlmnet = function(x, ...) {
  print(autoplot(x, ...))
}

Try the mlr3viz package in your browser

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

mlr3viz documentation built on Aug. 15, 2022, 5:07 p.m.