R/LearnerClassifCVGlmnet.R

Defines functions plot.LearnerClassifCVGlmnet autoplot.LearnerClassifCVGlmnet

Documented in autoplot.LearnerClassifCVGlmnet

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

}

#' @export
plot.LearnerClassifCVGlmnet = 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.