Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ID3 Decision Tree with Numeric Values

I'm looking for a ID3 decision tree implementation in Python or any languages which takes a validation and a testing file as an input and returns predictions.

I found this and this but I couldn't adapt them to numeric values, e.g. to Iris dataset.

Do you know any ID3 tree implementation that works from console or any written in Python? Or any suggestion how to use this with numeric values will be awesome.

like image 565
Stephen T. Avatar asked Nov 05 '22 16:11

Stephen T.


1 Answers

I have a similar algorithm C4.5 written in python. It work from console. If you are interested I put it here.

Sorry for a post if you need not this.

BTW, I have tested it on Iris data set :)

Update:

I have uploaded both: code and data:

  • c4.5 - http://pastebin.ca/1802066
  • iris.data - http://pastebin.ca/1802067

I hope it will help you.

BTW, program also can draw a tree into "png" via graphViz

like image 94
woo Avatar answered Nov 12 '22 15:11

woo