Skip to content

Implementation of a regression tree in python #152

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

Merged
merged 2 commits into from
Oct 10, 2017

Conversation

nbrgr
Copy link
Contributor

@nbrgr nbrgr commented Oct 9, 2017

I've implemented a basic decision tree in python as an example of how they work. Although the class I've created only works on one dimensional data sets, the reader should be able to generalize it to higher dimensions or non-continuous labels should they need to.

I believe that decision trees should be in this repository because they're fundamental in any machine learning course and are important in the field.

nbrgr added 2 commits October 9, 2017 12:36
I've implemented a basic decision tree in python as an example of how they work. Although the class I've created only works on one dimensional data sets, the reader should be able to generalize it to higher dimensions should they need to.
I added these return statements so that invalid inputs or valid end cases would no longer continue running through the rest of the function.
@dynamitechetan dynamitechetan merged commit f9156cf into TheAlgorithms:master Oct 10, 2017
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

Successfully merging this pull request may close these issues.

2 participants