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

Manually bagging ranger predictions #561

Open mllg opened 3 years ago

mllg commented 3 years ago

See https://stackoverflow.com/questions/65972567/how-can-i-save-all-prediction-from-ranger-learner-with-predit-all-true-into-a and https://github.com/mlr-org/mlr3learners/pull/172.

Should this be a pipe operator in mlr3pipelines? Maybe a nice use case to demonstrate how to write custom pipe ops?

RaphaelS1 commented 3 years ago

I think it would be nice to see this as a much more general pipeline in which we have multiple predictions dependent on a set hyper-parameter, I've been discussing this with @adibender in the context of competing risks for proba.

So as a PipeOp in this learner we'd have something like:

For a competing risk PipeOp:

So in the most general sense a PipeOp that iterates over all N values of a hyper-parameter to produce N prediction objects.