text_plain_output_1.png image_output_1.png
from sklearn.ensemble import RandomForestClassifier

clf = RandomForestClassifier()
clf = clf.fit(X_train, y_train)

clf.score(X_train, y_train)

clf.score(X_test, y_test)