mlr-org / mlr3

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

Assertion on 'predict_types' failed #1187

Closed invain1218 closed 1 month ago

invain1218 commented 1 month ago

I am getting an error when printingas.data.table(lrn()). Error: assert_ordered_set(predict_types, names(mlr_reflections$learner_predict_types[[task_type]]), : Assertion on 'predict_types' failed: Must be a subset of {'response','se','distr'}, but has additional elements {'quantiles'}. Before that I installed mlr3proba and mlr3extralearner. How do I fix it? Thank you very much!

larskotthoff commented 1 month ago

Did you update all mlr3 packages to the latest version?

invain1218 commented 1 month ago

Oh! Thanks!!! When I update all mlr3 packages, the problem is solved!