$30
HW2 Decision Tree programming
In this assignment, you will implement id3, the decision tree algorithm. Once you finish id3, you
will be able to test your code by running it on multiple datasets and see corresponding decision
trees generated by your implementation.
Starter Code:
- id3.py write your code here
- node.py do NOT modify this file
Testing:
- 3 datasets(train & test) along with 1 validation set are provided
- use 'python id3.py <train <test <model' to test your code. The <model argument
specifies the file name in which generated model is saved.
- Online unittest, visit "http://ix.cs.uoregon.edu/~gzhang7/hw2-upload.html" and follow the
instruction. Try to pass all 12 tests before submitting.
Note:
- use python 2.7