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

PipeOpRowApply #785

Closed advieser closed 1 month ago

advieser commented 1 month ago

Closes https://github.com/mlr-org/mlr3pipelines/issues/318

New PipeOp inheriting from PipeOpTaskPreprocSimple. This works by calling apply on the task data with FUN = applicator (param of the PO) and simplify = TRUE. This should return a matrix or a vector. If a list is returned, an error is thrown. The rest of the code is there

Tests might be a bit too excessive (?), I tried to cover all the points I talked about with @mb706.