0

When using caret with CV, imputation estimation /etc will happen in each fold as not to leak. I am trying to find whether this happens in the tidymodels workflow.

Logically I don't think so as you pipe a baked (already applied steps) into the vfold_cv... but I may br wrong.

I could build a workflow that creates folds first, but wondering if im missing something. Thanks

4

1 回答 1

0

终于找到了一个代表这个的例子。许多示例显示在预处理后创建拆分。但是,如果执行 cv,请始终在重新采样中进行预处理。

https://tidymodels.github.io/tune/reference/tune_grid.html

于 2020-03-18T10:00:38.177 回答