text_plain_output_1.png
from sklearn.metrics import accuracy_score

from sklearn.tree import DecisionTreeClassifier

humidity_classifier = DecisionTreeClassifier(max_leaf_nodes=10, random_state=0)
humidity_classifier.fit(X_train, y_train)

predictions = humidity_classifier.predict(X_test)

accuracy_score(y_true=y_test, y_pred=predictions)