text_html_output_1.png
from sklearn.ensemble import RandomForestClassifier

y_train.values

y_train.values.ravel()

random_forest = RandomForestClassifier(n_estimators=100)
random_forest.fit(x_train, y_train.values.ravel())

y_pred = random_forest.predict(x_test)
random_forest.score(x_test, y_test)