Created
September 10, 2020 19:38
-
-
Save omartinez182/a8f236d12817152fa24e0157fe04e38a to your computer and use it in GitHub Desktop.
Snippet #3 - Nested Cross-Validation Article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Define the hyperparameter grid | |
rf_param_grid = {'max_depth': [10, 50], | |
'n_estimators': [100, 200, 400]} | |
#Create arrays to store the scores | |
outer_scores = np.zeros(rounds) | |
nested_scores = np.zeros(rounds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment