Skip to content

Commit e51f92a

Browse files
jannesRobin Lovelaceclaude
committed
Merge PR #1159: Update 12-spatial-cv.Rmd
Add note that mlr3proba is required for list_mlr3learners(). Improve code formatting for readability. Co-Authored-By: Robin Lovelace <robinlovelace@gmail.com> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2 parents 53bbaa1 + 6c8f4c1 commit e51f92a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

12-spatial-cv.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,15 @@ mlr3viz::autoplot(task, type = "pairs")
325325

326326
Having created a task, we need to choose a **learner** that determines the statistical learning\index{statistical learning} method to use.
327327
All classification\index{classification} **learners** start with `classif.` and all regression\index{regression} learners with `regr.` (see `?Learner` for details).
328-
`mlr3extralearners::list_mlr3learners()` lists all available learners and from which package **mlr3** imports them (Table \@ref(tab:lrns)).
328+
`mlr3extralearners::list_mlr3learners()`, which requires **mlr3proba** to be installed, lists all available learners and from which package **mlr3** imports them (Table \@ref(tab:lrns)).
329329
To find out about learners that are able to model a binary response variable, we can run:
330330

331331
```{r 12-spatial-cv-12, eval=FALSE}
332+
install.packages("mlr3proba", repos = "https://mlr-org.r-universe.dev")
332333
mlr3extralearners::list_mlr3learners(
333334
filter = list(class = "classif", properties = "twoclass"),
334-
select = c("id", "mlr3_package", "required_packages")) |>
335+
select = c("id", "mlr3_package", "required_packages")
336+
) |>
335337
head()
336338
```
337339

0 commit comments

Comments
 (0)