Photo by Nicolas COMTE on Unsplash

Dealing with Groups in Cross-Validation

Does your data contains groups? Let’s see how to use cross-validation correctly in such scenarios

Piyush Agarwal
Towards Data Science
5 min readFeb 28, 2022

--

When building a model, have you faced a situation where you seem to have some kind of “grouping” within your dataset? You want to make sure that all the data related to the same group is considered either for training the model or…

--

--