Skip to content

Instantly share code, notes, and snippets.

@omartinez182
Created September 10, 2020 19:37
Show Gist options
  • Save omartinez182/a44daf1776e9a25229a122d64751a316 to your computer and use it in GitHub Desktop.
Save omartinez182/a44daf1776e9a25229a122d64751a316 to your computer and use it in GitHub Desktop.
Snippet #2 - Nested Cross-Validation Article
#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