dtree

README for 'ML test'
Login

README for 'ML test'

##README

This README describes how to compile and run the program as requested in ML Practical Test.pdf:

    dectree input-file output-attribute-index

where the output should be a set of rules defining the built decision tree in the following format:

    Attr1 = Val1 & Attr2 = Val2 ... => AttrN = ValN

Download

Click here to download the entire project as a tarball or a zip file.

Prerequisites

None, basically:

Compile

    cd src && make clean all

Run

    ./dtree ../data/adult.csv 0

Run using shortcuts

    make adult0     Shortcut for: ./dtree ../data/adult.csv 0
    make adult1
    make adult2
    ...

Using a smaller dataset:

    make small0     Shortcut for: ./dtree ../data/adult14.csv 0
    make small1
    make small2
    ...

Other datasets:

    make party0
    make party1
    ...

    make weather0
    make weather1
    ...

Resources