Oct 17, 2021
In a classification setting, stratified sampling ensures train and test sets have approx. the same percentage of samples of each target class as the complete set. If the data set has a large amount of each class, stratified sampling is quite the same as random sampling.