Takes a lists of Task, a list of Learner and a list of Resampling to generate a design in an expand.grid() fashion (a.k.a. cross join or Cartesian product).

Resampling strategies are not allowed to be instantiated when passing the argument, and instead will be instantiated per task internally. The only exception to this rule applies if all tasks have exactly the same number of rows, and the resamplings are all instantiated for such tasks.

benchmark_grid(tasks, learners, resamplings)

Arguments

tasks

(list of Task).

learners

(list of Learner).

resamplings

(list of Resampling).

Value

(data.table::data.table()) with the cross product of the input vectors.

Examples

tasks = list(tsk("iris"), tsk("sonar")) learners = list(lrn("classif.featureless"), lrn("classif.rpart")) resamplings = list(rsmp("cv"), rsmp("subsampling")) benchmark_grid(tasks, learners, resamplings)
#> task learner #> 1: <TaskClassif[45]> <LearnerClassifFeatureless[32]> #> 2: <TaskClassif[45]> <LearnerClassifFeatureless[32]> #> 3: <TaskClassif[45]> <LearnerClassifRpart[32]> #> 4: <TaskClassif[45]> <LearnerClassifRpart[32]> #> 5: <TaskClassif[45]> <LearnerClassifFeatureless[32]> #> 6: <TaskClassif[45]> <LearnerClassifFeatureless[32]> #> 7: <TaskClassif[45]> <LearnerClassifRpart[32]> #> 8: <TaskClassif[45]> <LearnerClassifRpart[32]> #> resampling #> 1: <ResamplingCV[19]> #> 2: <ResamplingSubsampling[19]> #> 3: <ResamplingCV[19]> #> 4: <ResamplingSubsampling[19]> #> 5: <ResamplingCV[19]> #> 6: <ResamplingSubsampling[19]> #> 7: <ResamplingCV[19]> #> 8: <ResamplingSubsampling[19]>