Skip to content

Commit

Permalink
add faq entry about initializing threads to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebffischer committed Mar 28, 2024
1 parent cc01d4e commit f367113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mlr-org/faq.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ title: Frequently Asked Questions
* [Why is the parallelization of tuning slow?](#tuning-slow)
* [Why are the CPUs on my system not fully utilized when using parallelization?](#parallelization-cpu)
* [How can I use time constraints when tuning?](#time-constraints)
* [Why is method X slower when used via `mlr3`?](#mlr3-default-slower)

## Why is there only the rpart learner? {#learner}

Expand Down Expand Up @@ -53,3 +54,8 @@ This can be avoided by setting `mlr3.exec_chunk_bins` to a smaller value than th

Time constraints can be set for individual learners, tuning processes, and nested resampling.
The gallery post [Time constraints in the mlr3 ecosystem](gallery/technical/2023-12-21-time-constraints/) provides an overview of the different options.

## Why is method X slower when used via `mlr3`? {#mlr3-default-slower}

By default, we set the number of threads of learners to 1 to avoid conflicts with parallelization.
Therefore, the default configuration of a learner may be significantly slower than the default configuration of the method when used directly.

0 comments on commit f367113

Please sign in to comment.