Generates plots for mlr3::ResampleResult.

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

Arguments

object

(mlr3::ResampleResult).

type

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

measure

(mlr3::Measure).

...

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

Value

ggplot2::ggplot() object.

Examples

library(mlr3) task = mlr_tasks$get("iris") learner = mlr_learners$get("classif.rpart") resampling = mlr_resamplings$get("cv") object = resample(task, learner, resampling) head(fortify(object))
#> iteration measure_id performance #> 1: 1 classif.ce 0.06666667 #> 2: 2 classif.ce 0.20000000 #> 3: 3 classif.ce 0.06666667 #> 4: 4 classif.ce 0.20000000 #> 5: 5 classif.ce 0.06666667 #> 6: 6 classif.ce 0.06666667
autoplot(object)
autoplot(object, type = "histogram", binwidth = 0.01)