text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.metrics import confusion_matrix

from sklearn.ensemble import RandomForestClassifier
clf = RandomForestClassifier()

clf.fit(X_train, y_train)

pred = clf.predict(X_test)

from sklearn.metrics import confusion_matrix
print(confusion_matrix(y_test, pred))