autoplot.LearnerRegr {mlr3viz} | R Documentation |
Plot for Regression Learners
Description
Visualizations for mlr3::LearnerRegr.
The argument type
controls what kind of plot is drawn.
Possible choices are:
-
"prediction"
(default): Decision boundary of the learner and the true class labels.
Usage
## S3 method for class 'LearnerRegr'
autoplot(
object,
type = "prediction",
task,
grid_points = 100L,
expand_range = 0,
theme = theme_minimal(),
...
)
Arguments
object |
|
type |
(character(1)): |
task |
(mlr3::Task) |
grid_points |
(integer(1)) |
expand_range |
(numeric(1)) |
theme |
( |
... |
(ignored). |
Value
Examples
if (requireNamespace("mlr3")) {
library(mlr3)
library(mlr3viz)
task = tsk("mtcars")$select(c("am", "carb"))
learner = lrn("regr.rpart")
learner$train(task)
autoplot(learner, type = "prediction", task)
}
[Package mlr3viz version 0.9.0 Index]