Play With a Decision Tree in your browser.
Also check out 1D Random Forest and 2D Random Forest playgrounds.

Data

Generate data

Output

Colors show data values.
MetricsTrainTest

Parameters

How to display the decision tree model

When after training, you can display the tree model. However, sometimes the tree may be too large to be displayed fully on the viewport. The tree will be displayed only if the following parameters are selected:

Classification Mode: Circle/Gaussian & max depth ≤ 5.

Regression Mode: Max depth ≤ 3.

Please scroll down to see the tree visualization.