autoplot.LearnerClassifGlmnet: Plots for GLMNet Learners

View source: R/LearnerClassifGlmnet.R

autoplot.LearnerClassifCVGlmnetR Documentation

Plots for GLMNet Learners

Description

Visualizations for GLMNet learners using the package ggfortify.

Usage

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

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

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

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

Arguments

object

(mlr3learners::LearnerClassifGlmnet | mlr3learners::LearnerRegrGlmnet | mlr3learners::LearnerRegrCVGlmnet | mlr3learners::LearnerRegrCVGlmnet).

theme

(ggplot2::theme())
The ggplot2::theme_minimal() is applied by default to all plots.

...

(ignored).

Value

ggplot2::ggplot().

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.32614/RJ-2016-060")}.

Examples

## Not run: 
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)

## End(Not run)

mlr3viz documentation built on Nov. 23, 2023, 5:07 p.m.