Support stratified kfold
Open
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 164
- Avg merge
- 7h 31m
- Merged PRs (30d)
- 1
Description
It would be very useful to support [Stratified KFold](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.StratifiedKFold.html) which is way more commonly used than a random KFold.
Typically it'd look something like:
```python
import datatable as dt
from datatable.models import kfold_stratified
X = dt.Frame(...)
stratified_splits = kfold_stratified(by=X['group'], nsplits=5, seed=1234)
```
where `X` is a frame having a column `group` by which the stratification is done.
Contributor guide
Assessment
This issue has not been assessed yet.