mlr3pipelines icon indicating copy to clipboard operation
mlr3pipelines copied to clipboard

$importance() for graphlearner

Open mb706 opened this issue 4 years ago • 2 comments

when prepending a learner with some preprocessing we still might need to access the learner's $importance

mb706 avatar Nov 01 '19 06:11 mb706

This is easy when only one learner is encapsulated, but what if

  • Multiple learners are encapsulated
  • Something else that credibly gives some importance measure is encapsulated, e.g. a filter

Possible solution: the GraphLearner gets some extra hyperparameter "which.importance" with levels = all PipeOps that have an $importance slot. The PipeOpLearner(CV) would need to have an importance slot whenever what the encapsulate has one (how can this be done during construction?), and other PipeOps can also have $importance slots in principle.

mb706 avatar Feb 12 '20 07:02 mb706

I don't know whether you have fixed it, as I still face the same problem. Any suggestion?

HongxiangXu avatar Jul 15 '22 08:07 HongxiangXu