mlr-org / mlr3book

Online version of Bischl, B., Sonabend, R., Kotthoff, L., & Lang, M. (Eds.). (2024). "Applied Machine Learning Using mlr3 in R". CRC Press.
https://mlr3book.mlr-org.com/
MIT License
253 stars 59 forks source link

Update non-sequential_pipelines_and_tuning.qmd #742

Closed Shitao5 closed 10 months ago

Shitao5 commented 11 months ago

The addition of a random seed set.seed(1234) makes the results of the random search tnr("random_search") reproducible and aligns with the current description in the book.

image

image

mb706 commented 11 months ago

Hi, thanks for the heads-up about the typo. However, it is not actually necessary to set the seed here, as noted here: the included _setup.qmd at the top already sets a seed.

RaphaelS1 commented 10 months ago

Also just to point out the results are consistent. The number 5 references the above code chunk, plotting then shows you that 4 would be just as good