text_plain_output_1.png
from sklearn.metrics import log_loss

from sklearn.tree import DecisionTreeClassifier

from sklearn.tree import DecisionTreeClassifier

clf = DecisionTreeClassifier(n_estimators=1000)
from sklearn.tree import DecisionTreeClassifier
clf.fit(X_train, y_train)
y_val_pred = clf.predict_proba(X_val)
log_loss(y_val, y_val_pred)