Giter Site home page Giter Site logo

comp760_hw2's Introduction

Decision Tree Homework

Jack West's repo for Homework 2 in 761. If there are any complications, email me at [email protected].

Dependencies

To install dependencies, run the command below. pip install -r requirements.txt

Be aware that I use python as the python command. This code requires Python 3 for some systems, python will be located at the python3 command.

Run the code

To run the code, you must exrecute python ./main.py from the root directory. Running the code will not give all question solutions.

To change the dataset, you must change the condtion on line 194 to select the database you wish to evaluate.

When working with Dbig.txt, you mus also uncomment the big_dataset_logic and comment out the normal_dataset_logic. To observe the sklearn tree, the process is the same except uncommenting the sklearn_tree_analysis. A note about the sklearn question, the datasets are built with uniform random sampling on each script run, thus the results will slightly differ per run.

When validating bad_dataset.txt you must change line 110 from t = DecisionTree(dataset[key],name=key,force_choice=False,choice_ind=2) to t = DecisionTree(dataset[key],name=key,force_choice=True,choice_ind=2).

When testing question 4, you must execute the command python ./lagrange_interpolation.py

comp760_hw2's People

Contributors

jweezy24 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.