Chapter 2: Stratify
Ouverte
- Langage dominant
- Jupyter Notebook
- Étoiles
- 25.6k
- Forks
- 12.7k
- Métriques de merge des PR
- Métriques de PR en attente
Description
Why use StrafiedShuffleSplit, instead of train_test_split with attribute ```stratify```?
```X_train, X_test = train_test_split(housing.values, test_size=0.2, stratify=housing['income_cat'], random_state=42)```
I think its more clear and pythonic that make folds and use a ```for``` statement for 1 iteration
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.