mlr-org / mlr3

mlr3: Machine Learning in R - next generation
https://mlr3.mlr-org.com
GNU Lesser General Public License v3.0
906 stars 84 forks source link

perf: skip unnecessary clone of learner's state in `resample()` #1003

Closed sebffischer closed 4 months ago

sebffischer commented 5 months ago

the state is overwritten anyway later.

This matters for Learners that properly implement deep cloning. For torch learners this can be expensive and should be avoided.