Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions 12-spatial-cv.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,15 @@ mlr3viz::autoplot(task, type = "pairs")

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

```{r 12-spatial-cv-12, eval=FALSE}
install.packages("mlr3proba", repos = "https://mlr-org.r-universe.dev")
mlr3extralearners::list_mlr3learners(
filter = list(class = "classif", properties = "twoclass"),
select = c("id", "mlr3_package", "required_packages")) |>
select = c("id", "mlr3_package", "required_packages")
) |>
head()
```

Expand Down
Loading