mlr-org / mlr3pipelines

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

GraphLearner$get_last_learner or something #699

Closed mb706 closed 1 year ago

mb706 commented 2 years ago

this doesn't work in all cases, e.g. when doing bagging, but often it is what one wants: get the last PipeOp in a sequential Graph that is a PipeOpLearner, and return its (trained) Learner.

mb706 commented 2 years ago

maybe also just forward all methods / slots of the last learner to GraphLearner. This is anarchy, but it would solve quite a few Tag: Graph Transparency problems.