#This program is implemented in python3
#To run the program, just run decisiontree.py with 2 argument as training data and test data #The commond line should be: python3 decisiontree.py [file name of training set] [file name of test set]
#Copy the below commond line for convinience:
python3 decisiontree.py hepatitis-training hepatitis-test
#if you want to see the training accuracy, use the command line below:
python3 decisiontree.py hepatitis-training hepatitis-training
What does this program do It use the training data to build a decision tree, then take each instance to go through the tree to find the predicted label.
Note: data file must be in the 'data' folder under the same directory with dessiontree.py