Introduction
Stratified K-fold helps us split data into parts while keeping the same balance of groups in each part. This way, our model learns fairly from all groups.
When you have different classes in your data and want each part to have the same class balance.
When you want to test your model fairly on all types of data.
When your data is small and you want to use all of it for training and testing.
When you want to avoid bias from uneven group distribution in splits.