Caret, Tidymodels, and Partial Dependence Plots for Interactions

I used caret for a couple of years before making the switch to tidymodels this spring. I am getting comfortable with tidymodels, except it seems that the opportunities to integrate partial dependence plots are limited to single-predictor plots against the outcome variable.

I have seen that single-predictor plots are possible ( How to use `pdp:: partial()` in `tidymodels`), but I would also like to examine interaction, or two-predictor, plots for partial dependence, such as one can do with the pdp package with caret.

Should I return to caret and use pdp, or keep looking for a workaround with tidymodels? In addition, I understand that tidymodels processes data independently for each iteration within a k-fold cross validation. This avoids the data leakage that occurs when all data are processed at once and the training data can "peek" at the distribution of the testing data.

Does caret process data "within the fold" as well?

Thank you!


1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.