Skip to contents

Visualizations for GLMNet learners using the package ggfortify.

Usage

# S3 method for LearnerClassifCVGlmnet
autoplot(object, theme = theme_minimal(), ...)

# S3 method for LearnerClassifGlmnet
autoplot(object, theme = theme_minimal(), ...)

# S3 method for LearnerRegrCVGlmnet
autoplot(object, theme = theme_minimal(), ...)

# S3 method for LearnerRegrGlmnet
autoplot(object, theme = theme_minimal(), ...)

References

Tang Y, Horikoshi M, Li W (2016). “ggfortify: Unified Interface to Visualize Statistical Result of Popular R Packages.” The R Journal, 8(2), 474--485. doi:10.32614/RJ-2016-060 .

Examples

if (FALSE) {
library(mlr3)
library(mlr3viz)
library(mlr3learners)

# classification
task = tsk("sonar")
learner = lrn("classif.glmnet")
learner$train(task)
autoplot(learner)

# regression
task = tsk("mtcars")
learner = lrn("regr.glmnet")
learner$train(task)
autoplot(learner)
}