text_plain_output_1.png
from sklearn.metrics import accuracy_score

from sklearn.tree import DecisionTreeClassifier, plot_tree

gini_classifier = DecisionTreeClassifier(criterion='gini')

gini_classifier.fit(X_train, y_train)

y_pred = gini_classifier.predict(X_test)

accuracy = accuracy_score(y_test, y_pred) * 100
print(f'accuracy : {accuracy}')