I like to use Leave-One-Out Cross-Validation in mlr3 (as part of a pipeline).
I could specify the number of folds (=number of instances) e.g. via
resampling = rsmp("cv", folds=task$nrow)
But this refers explicitly to "task" which may not work in the pipeline.
How can I proceed here?