Coder Social home page Coder Social logo

decision-tree-from-scratch's Introduction

Decision-Tree-From-Scratch

Python code for a decision tree built from scratch (w/o sckit-learn). Works for continuous/numerical variables.

Task:

  1. construct a decision tree classifier from the given training data
  2. use the learned tree classifier to classify the unlabeled test data, and
  3. output the predictions of your classifier on the test data into a file named blackbox1*_predictions.csv

The format of *_train.csvlooks like: x1, x2, y Where x1 andx2are the attribute values and yis the label, and _test.csvare unlabeled. Your output blackbox1_predictions.csvwill look like 1 0 0 ร‰. (A single column indicates the predicted labels for each unlabeled sample in the input test file)

decision-tree-from-scratch's People

Contributors

addyg avatar

Watchers

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