Generates plots for mlr3::BenchmarkResult, depending on argument type:

# S3 method for BenchmarkResult
autoplot(object, type = "boxplot", measure = NULL, ...)

Arguments

object

(mlr3::BenchmarkResult).

type

(character(1)):
Type of the plot. See description.

measure

(mlr3::Measure).

...

(any): Additional arguments, passed down to the respective geom.

Value

ggplot2::ggplot() object.

Examples

library(mlr3) library(mlr3viz) tasks = tsks(c("spam", "pima", "sonar")) learner = lrns(c("classif.featureless", "classif.rpart"), predict_type = "prob") resampling = rsmps("cv") object = benchmark(benchmark_grid(tasks, learner, resampling)) head(fortify(object))
#> nr task_id learner_id resampling_id classif.ce #> 1: 1 spam classif.featureless cv 0.3991323 #> 2: 1 spam classif.featureless cv 0.3760870 #> 3: 1 spam classif.featureless cv 0.4043478 #> 4: 1 spam classif.featureless cv 0.4065217 #> 5: 1 spam classif.featureless cv 0.4021739 #> 6: 1 spam classif.featureless cv 0.3847826
autoplot(object)
autoplot(object$clone()$filter(task_ids = "spam"), type = "roc")
autoplot(object$clone()$filter(task_ids = "pima"), type = "prc")