Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about decision trees being universal function approximators. #22

Closed
rohanpaleja27 opened this issue Oct 12, 2021 · 1 comment
Closed

Comments

@rohanpaleja27
Copy link

Hi,

I hope this is the right place to post a question about the HTML materials! I was reviewing this and am having some trouble understanding why a decision tree or regression tree would be a universal function approximator. Would you be able to provide some clarification for why a regression tree would be a universal function approximator? If there is a pointer to a chapter within Machine Learning Refined that goes deeply into this, I would greatly appreciate a reference!

Thanks,

@neonwatty
Copy link
Owner

Hi! Apologies for the delayed response!

Broadly speaking - a tree is a universal function approximator for the same reason polynomials, Fourier series, or fully connected networks are - using them you can approximate (reasonable) functions to any tolerance you desire. Basically it means you can find some combination of the basis functions to approximate just about any "real world" function you'd ever encounter.

Check out the video above Example 11.6 in the link you shared. There you'll see a little animation showing the progressive approximation to a sine wave of successive combinations of polynomials (left panel), fully connected networks (middle panel), and trees (right panel).

This is just a single example of course, but you can imagine (or test!) how you could perform the same experiment on more complicated functions.

Hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants