text_plain_output_1.png
from sklearn import metrics

from sklearn.ensemble import RandomForestClassifier

from sklearn import metrics
from sklearn.ensemble import RandomForestClassifier
tree = RandomForestClassifier()
tree.fit(xtrain, ytrain)
ypred = tree.predict(xtest)
print('Prediction Accuracy', metrics.accuracy_score(ytest, ypred))