Regression Tree (Interactive)

Left-click to add X markers; the y-coordinate will be the output, and the x-coordinate the input.

Regression Tree as Python Function