mlr-org / mlr3

mlr3: Machine Learning in R - next generation
https://mlr3.mlr-org.com
GNU Lesser General Public License v3.0
947 stars 85 forks source link

Time constraints gallery update with new mlr3 v0.21.0 encapsulation #1185

Closed iLivius closed 1 month ago

iLivius commented 1 month ago

Hi Marc,

I was just going through your time constraints article in the gallery and noticed that users might encounter an error with the latest mlr3 v0.21.0 due to changes in how encapsulation is handled.

Perhaps suggesting an updated encapsulation strategy would be helpful, such as:

learner$encapsulate("callr", fallback = lrn("classif.featureless", predict_type = "prob"))

Thank you and the entire mlr3 team for your incredible work!

be-marc commented 1 month ago

Hey, thanks for reporting. Fixed in https://github.com/mlr-org/mlr3website/pull/171