Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

'classif.ranger' not found in DictionaryLearner

I am trying to implement the tuning space ‘classif.ranger.rbv1’ from mlr3tuningspaces

However, I am getting an error for the learner that the ‘classif.ranger’ is not found in the DictionaryLearner

I have tried two methods, shown below

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

tuning_space <- lts("classif.ranger.rbv1")
learner <- tuning_space$get_learner()

and

tuning_space <- lts("classif.ranger.rbv1")
learner <- lts(lrn("classif.ranger"))

and both lead to the error message

Error: Element with key 'classif.ranger' not found in DictionaryLearner!

>Solution :

You need to load mlr3learners first.

One way import the central mlr3 packages is to include a:

library(mlr3verse)

at the top of your script.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading