application_vnd.jupyter.stderr_output_2.png text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.metrics import accuracy_score

from sklearn.tree import DecisionTreeClassifier

from sklearn.tree import DecisionTreeClassifier
classifier4 = DecisionTreeClassifier(criterion='entropy', random_state=0)
classifier4.fit(X_train, Y_train)
Y_pred4 = classifier4.predict(X_test)

from sklearn.ensemble import RandomForestClassifier
classifier5 = RandomForestClassifier(n_estimators=10, criterion='entropy', random_state=0)
classifier5.fit(X_train, Y_train)
Y_pred5 = classifier5.predict(X_test)
print('Accuracy = ', accuracy_score(Y_test, Y_pred4) * 100, '%')