Created
May 22, 2019 16:43
-
-
Save glamp/bace35ff7e5a0008abb34e6c190abc28 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
from sklearn.ensemble import RandomForestClassifier | |
clf = RandomForestClassifier() | |
target_variable = 'does-make-more-than-50k' | |
columns = ['age', 'education', 'hours-worked-per-week'] | |
clf.fit(df[columns], df[target_variable]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment