text_plain_output_1.png
from sklearn.ensemble import GradientBoostingClassifier

from sklearn.ensemble import RandomForestClassifier

from sklearn.ensemble import RandomForestClassifier
clf = RandomForestClassifier()
clf.fit(train_X, train_y)

from sklearn.ensemble import GradientBoostingClassifier
clf = GradientBoostingClassifier()
clf.fit(train_X, train_y)
print('The training score is: {}\n'.format(clf.score(train_X, train_y)))
print('The test score is: {}\n'.format(clf.score(test_X, test_y)))