Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 3 - Cross-Validation for loop typo #44

Open
vivekh2000 opened this issue Oct 2, 2021 · 0 comments
Open

Lesson 3 - Cross-Validation for loop typo #44

vivekh2000 opened this issue Oct 2, 2021 · 0 comments

Comments

@vivekh2000
Copy link

The following code in Lesson 3 - Cross-Validation appears in the notebook.

skf = StratifiedKFold(n_splits=10, shuffle=True)
for _, val_idx in kf.split(np.array(train_imgs), train_labels):

However, I believe the for loop iterator should be skf.split(..) instead of kf.split(...) as the n_splits=10 is done for skf in the preceding line.
https://walkwithfastai.com/Cross_Validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant