R/LearnerRegrCVGlmnet.R

Defines functions plot.LearnerRegrCVGlmnet autoplot.LearnerRegrCVGlmnet

Documented in autoplot.LearnerRegrCVGlmnet

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

#' @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 Nov. 23, 2023, 5:07 p.m.