Code Monkey home page Code Monkey logo

cart-de-novo's Introduction

Dear TA:

To run our program, you    「only」     need to run   「regMain.py」

0. It will automatically import all data from /inputData/partial_train.csv(80% of all trainng data)
                                                      remain_train.csv(20% of all trainng data)
                                                      test.csv

1. It will give a model using CART without pruning, and MSE

2. It will then use Weakest Link Pruning and cross validation to giving you a optimized tree, and MSE

3. It will then test the model over testing dataset and give you a MSE

4. It will then use M5' algorithm to improve the model, and give you a optimized tree and MSE

5. Then it will generate a function which can help you implement the model and output to /result/regressionTreeExecute.py

6. Then it will draw a graph of decision tree an output to /result/regressionTreeGraph.eps

7. All the tree object will be stored in /tmp/reg/forest/ (in .db form)



"""
If you want to know more about our program, you can refer to:

(The following modules will not run by themselves, you should call it in other program)

Compiler:
    compile.py

M5 Algorithm:
    M5.py

CSV reader:
    readData.py

Assessment Moduel:
    regAsses.py

Regression Tree Grow Module:
    regGrow.py

Tree Printer:
    treePrint.py

Tree Pruner:
    regPrune.py

"""

cart-de-novo's People

Contributors

bokesyo avatar

Stargazers

 avatar

Watchers

 avatar

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.