ageron / ageron/handson-ml2

[QUESTION] About Cross-Validation in Chapter2

Open
#631 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
30k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

In Chapter2, we had make a training set by using stratified sampling to guarantee that the test set is representative of the overall population. However, in the "Better Evaluation Using Cross-Validation" we just use Scikit-Learn’s K-fold cross-validation feature. to randomly splits the training set, that means everytime we train the model, we use a training set that might be not representative of the overall population. Why would this be okay? why don't we need to divided the traing set to k-folds by using stratified sampling?
Thank you for your answer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.