Data Lab
Decision Tree Explorer
Compare training and test performance on deterministic synthetic data.
Loading simulation…
Python example
from sklearn.tree import DecisionTreeClassifier
model = DecisionTreeClassifier(max_depth=3).fit(X_train, y_train)
print(model.score(X_test, y_test))