Last active
July 12, 2021 13:38
-
-
Save WillKoehrsen/009862ad00ba7f3767c904506a7d8a54 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from sklearn.ensemble import RandomForestClassifier | |
# Create the model with 100 trees | |
model = RandomForestClassifier(n_estimators=100, | |
bootstrap = True, | |
max_features = 'sqrt') | |
# Fit on training data | |
model.fit(train, train_labels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment