If an element in the vector has an empty name (""), we use the vector element itself in the output. If there is a non-empty name for a learner ("forest") we use this in the output instead of the vector element ("mlr3::lrn('ranger', num.trees = 10)").
In the example above, the output would then look like:
> get_best(x)
lambda lambda.bar
tree 0.01096 5.512
forest 0.11812 5.303
---
The best learner for BLP is forest with lambda = 0.1181.
The best learner for GATES and CLAN is forest with lambda.bar = 5.5124.
The
mlr3
specification can be a bit cumbersome in output, for example:We could allow to give cleaner labels by using names in vector that specifies of the learners, for example:
If an element in the vector has an empty name (
""
), we use the vector element itself in the output. If there is a non-empty name for a learner ("forest"
) we use this in the output instead of the vector element ("mlr3::lrn('ranger', num.trees = 10)"
).In the example above, the output would then look like: