text_plain_output_1.png
from sklearn.ensemble import GradientBoostingClassifier

from sklearn.ensemble import RandomForestClassifier

from sklearn.linear_model import LogisticRegression

from sklearn.svm import SVC

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)

from sklearn.svm import SVC
clf = SVC(gamma=1)
clf.fit(train_X, train_y)

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