Created
September 10, 2020 19:37
-
-
Save omartinez182/a44daf1776e9a25229a122d64751a316 to your computer and use it in GitHub Desktop.
Snippet #2 - 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
#Set a seed to ensure reproducibility | |
seed = 42 | |
#Instantiate the Random Forest classifier | |
rf = RandomForestClassifier(random_state=seed) | |
#Number of rounds | |
rounds = 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment