text_html_output_1.png
from sklearn.metrics import accuracy_score, confusion_matrix,classification_report

from sklearn.tree import DecisionTreeClassifier

from sklearn.tree import DecisionTreeClassifier
model = DecisionTreeClassifier(random_state=0)

model.fit(x_train, y_train)

y_pred = model.predict(x_test)

y_train_pred = model.predict(x_train)

print(accuracy_score(y_train, y_train_pred) * 100)