spatialsample::spatial_clustering_cv() for Tidymodels -- coords removed for prediction or no?

I recently discovered spatial_clustering_cv() from spatialresample package to work alongside tidymodels.

I was just wondering if setting spatial_clustering_cv(v, coords = c(x, y) would keep x and y as predictors or would be removed (like id or strata would).

How can I check this?

This has been crossposted from spatialsample::spatial_clustering_cv() for Tidymodels -- coords removed for prediction or no? · Issue #32 · tidymodels/spatialsample · GitHub.

Answer in case you see this post first:

Resampling only splits the data. The columns you declare as coords will still be part of the data and their role will be what you declare in the recipe.

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.