mlr-org / mlr3tuning

Hyperparameter optimization package of the mlr3 ecosystem
https://mlr3tuning.mlr-org.com/
GNU Lesser General Public License v3.0
55 stars 5 forks source link

Update docs on early stopping rounds for xgboost #445

Closed SteveBronder closed 3 months ago

SteveBronder commented 3 months ago

Code no longer works from blog post below

https://mlr-org.com/gallery/optimization/2022-11-04-early-stopping-with-xgboost/

task$set_row_roles(split$test, "test")
Error in task_set_roles(private$.row_roles, rows, roles, add_to, remove_from) : 
  Assertion on 'roles' failed: Must be a subset of {'use'}, but has additional elements {'test'}.
be-marc commented 3 months ago

Hey, sorry we changed the early stopping mechanism recently. Here is a preview of the book chapter on early stopping https://829-merge--mlr3book.netlify.app/chapters/chapter15/validation_and_internal_tuning.