I want to first do imputation within each cv fold and then train the learner with autotuner, and test it on testing sets.
I can see that once the resampling scheme is fixed, the imputation is fixed, so that only (inner folds) * (outer folds) imputations are needed. However, in mlr3, the imputation is combined with the learner by pipelines, the number of imputations will be (inner folds) * (outer folds) * (autotuning evaluations).
Is there any way to impute along with resampling instead of a learner?