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

export clone_with_state #638

Closed pfistfl closed 2 months ago

pfistfl commented 2 years ago

Could use it in other packages e.g. mcboost.

mb706 commented 2 years ago

What is your intended use case? clone_with_state() is a helper function used internally because multiplicity handling gets easier like this. If you are using it with Multiplicities then we can export this (probably would also want to export multiplicity_recurse()). If you want the function for something that is not mlr3pipelines-related, then I don't think you should rely on your mlr3pipelines dependency for this kind of function.

mb706 commented 2 months ago

I think this is too specific a function to be worth exporting. Feel free to reopen if you disagree.