This is a console-based Python App to create Decision-Trees for Data & Attributes provided in a JSON file, using the ID3 algorithm. Uses OOP for implementation of Tree Nodes.
It offers Gain-Information and Gain-Ratio methods for the ID3 algorithm
The implementation uses:- Python
- JSON
- OOP Concepts
- Machine Learning Concepts
Make sure Python is installed on your system. To clone this application, you'll need Git. From your command line:
# Clone this repository (or download from github page)
$ git clone https://github.com/kamiljaved98/ID3
# Go into the repository
$ cd ID3
# run the app
python(3) main.py -a <AttributeFile> -d <DataFile> (Optional: -t [calc. Test-Set Accuracy] -r [use Gain-Ratio])
# example command
python main.py -a ./tests/PlayTennis/attributes.json -d ./tests/PlayTennis/data.json
kamiljaved.pythonanywhere.com · GitHub @kamiljaved