text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.metrics import accuracy_score,precision_score,confusion_matrix,f1_score,classification_report

from sklearn.ensemble import RandomForestClassifier
random_forest = RandomForestClassifier(n_estimators=180, max_depth=4, random_state=0)
random_forest.fit(X_train, y_train)
prediction = random_forest.predict(X_test)
print('Accuracy  score: ', accuracy_score(y_test, prediction))
print('Precision score: ', precision_score(y_test, prediction))
print(classification_report(y_test, prediction))