Skip to content
/ ID3 Public

A Python console app for creating Decision-Trees using the ID3 algorithm.

Notifications You must be signed in to change notification settings

kamiljaved/ID3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


ID3 Decision-Tree Maker

A Python console app for creating Decision-Trees.

 Made with Python.

AboutHow To Use


About

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

How To Use

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

About

A Python console app for creating Decision-Trees using the ID3 algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages