Open sebffischer opened 10 months ago
This is also the case when running measure$score()
.
learner = lrn("regr.debug")
learner$train(tsk("mtcars"))
pred = learner$predict(tsk("mtcars"))
measure = msr("selected_features")
measure$score(pred, task = tsk("mtcars"), learner = learner)
Looks like we don't the check the learner properties "importance", "selected_features", "oob_error"
at all. We just return NA
. I would vote for adding the warning directly to Mesaure$.score()
instead of adding requires_selected_features
and requires_oob_error
.
Except if there are multiple measures that need oob_error
or the selected_features
.
Maybe a misunderstanding from my side, but shouldn't I get a warning in the code below, as the regr.debug learner does not have the
"selected_features"
property?Created on 2024-02-01 with reprex v2.0.2