overwrites the param_set slot of learner which has the importance = "impurity" information here that is needed during training.
Do we need this line?
After the clone (in l.39) everything should be present in the learner object?
Also we need a test for this. The current one does not catch this bug since classif.rpart, which is used in the test, does not rely on a external param_vals to be set.
Created on 2019-06-04 by the reprex package (v0.3.0)
The reason is that
https://github.com/mlr-org/mlr3featsel/blob/fc91dbc3540c2e05dae859990fbade854a6d7b06/R/FilterVariableImportance.R#L40
overwrites the
param_set
slot oflearner
which has theimportance = "impurity"
information here that is needed during training. Do we need this line? After the clone (in l.39) everything should be present in thelearner
object?Also we need a test for this. The current one does not catch this bug since
classif.rpart
, which is used in the test, does not rely on a externalparam_vals
to be set.