Git Product home page Git Product logo

python-regression-tree-forest's Introduction

Python-Regression-Tree-Forest

Python implementation of regression trees and random forests. See "Classification and Regression Trees" by Breiman et al. (1984).

The regression_tree_cart.py module contains the functions to grow and use a regression tree given some training data.

football_parserf.py is an example implementation of regression_tree_cart.py that predicts an NFL player's fantasy points given their statistics from the previous year. The data is stored in football.csv.

The random_forest.py module contains the functions to grow a random forest and use it for prediction.

football_forest.py is an example implementation of random_forest.py.

python-regression-tree-forest's People

Contributors

chandarb avatar

Stargazers

Mayank Keoliya avatar  avatar  avatar LDD avatar  avatar XiongYan avatar  avatar Shuxin avatar Taylon avatar Hossam Ali avatar  avatar llalluan avatar Ricardo.L.Lee avatar Zorro Albert avatar  avatar Stephen avatar  avatar  avatar Darian avatar yunya avatar Albert Zhou avatar  avatar Xiaoyang Huang avatar  avatar  avatar Vincent avatar  avatar Shubham Pachori avatar Donglearner avatar  avatar rui lei avatar  avatar Johannes Ahlmann avatar afeng avatar  avatar  avatar Eleanna Skouta avatar Jason Poulos avatar fun_dl avatar  avatar Omkar Choudhury avatar 86 avatar Junlong Liu avatar

Watchers

James Cloos avatar 86 avatar  avatar  avatar coffee avatar  avatar  avatar  avatar  avatar

python-regression-tree-forest's Issues

A QUESTION ABOUT YOUR CODE

As my title, there a question about the code of regression_tree_cart. The follow code is abstracted from it:
def prune_tree(self): . . . trees.append(copy.deepcopy(new_tree)) ...
I just don't understand why you use this:trees.append(copy.deepcopy(new_tree)).
I think it should be that trees.append(copy.deepcopy(nodes))
Maybe somewhere I make mistakes. Could u mind tell me the reasones if you have time.
Thank U!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.