text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.linear_model import LogisticRegression

from sklearn.neighbors import KNeighborsClassifier

from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
rfr = RandomForestClassifier()
knn = KNeighborsClassifier()
logmod = LogisticRegression()
rfr.fit(X_train, y_train)
knn.fit(X_train, y_train)
logmod.fit(X_train, y_train)
print('Random Forest Regressor Score: {:.2f}'.format(rfr.score(X_test, y_test)))
print('K Nearest Neighbors Score: {:.2f}'.format(knn.score(X_test, y_test)))
print('Logistic Regression Score: {:.2f}'.format(logmod.score(X_test, y_test)))