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

Data

Generate data

Output

−6−5−4−3−2−10123456−6−5−4−3−2−10123456
Colors show data values.
−101
MetricsTrainTest
Accuracy0.0000.000
Precision0.0000.000
Recall0.0000.000

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.