apoorvagnihotri / decision-trees

Random Forests and Decision Tree implementation using pandas in python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

This repository contains a naive implementation of Decision Trees. The variant this repository contains is called Classification and Regression Trees.

Requirements

The following method works on Ubuntu 18.04 LTS. You need to install anaconda and start the cli and type in the following command to replicate the environment on your local machine.

conda create --name ENV_NAME --file Requirements.txt

Replace ENV_NAME with an environment name of your choice.

Usage

  • See src/q*.ipynb for a commented usage of the implemented CART algo.
  • Folder scripts contains python scripts to download the data used in the jupyter notebooks.
  • Look at answer_sheet.md for the assignment answers.

Credits

The implementation I have here, takes ideas from Josh Gordan's implementation of Classification Decision Trees as a part of online video.

About

Random Forests and Decision Tree implementation using pandas in python.


Languages

Language:Jupyter Notebook 95.7%Language:Python 4.3%