autoplot.BenchmarkResult: Plot for BenchmarkResult

Description Usage Arguments Value References Examples

View source: R/BenchmarkResult.R

Description

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

Usage

1
2
## S3 method for class '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 or plotting function.

Value

ggplot2::ggplot() object.

References

Saito T, Rehmsmeier M (2017). “Precrec: fast and accurate precision-recall and ROC curve calculations in R.” Bioinformatics, 33(1), 145-147. doi: 10.1093/bioinformatics/btw570.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(mlr3)
library(mlr3viz)

tasks = tsks(c("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))
autoplot(object)
autoplot(object$clone(deep = TRUE)$filter(task_ids = "pima"), type = "roc")

mlr3viz documentation built on July 2, 2021, 1:07 a.m.