Last active
May 7, 2018 19:23
-
-
Save cuckookernel/30666ee5e8719225f17cb4d97fb57d05 to your computer and use it in GitHub Desktop.
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
rfc = RandomForestClassifier( n_estimators=100, max_depth=5 ) | |
rfc.fit( train_df, train_Y) | |
train_pred = rfc.predict( train_df ) | |
accuracy = (train_pred == train_Y).sum() / len( train_pred ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment