mlr-org / mlr3pipelines

Dataflow Programming for Machine Learning in R
https://mlr3pipelines.mlr-org.com/
GNU Lesser General Public License v3.0
137 stars 25 forks source link

Look at PipeOpLearner task_type #655

Open mb706 opened 2 years ago

mb706 commented 2 years ago

seems to depend on https://github.com/mlr-org/mlr3/issues/470 which is closed now

mb706 commented 1 month ago

So the problem is this: https://github.com/mlr-org/mlr3pipelines/blob/e755230243e0392e7ed427e7fb5e104da25555e3/R/PipeOpLearner.R#L106-L109

We are creating a PipeOp with a Learner that reports that it can handle a specific task_type. We then look up the mlr_reflections to see what class this task_type should have, but it can apparently be multiple? If something is task_type == classif, should it always inherit from TaskClassif?