It looks like StratifiedRandomSub
was added at some point, but I can’t find it:
There is a StratifiedKfold
and StratifiedRandomSub
: Cross Validation — MLBase 0.4.0 documentation.
MLJ.jl also has stratified sampling: MLJBase.jl/resampling.jl at dev · JuliaAI/MLJBase.jl · GitHub