Unless I'm missing something, the usual suspects don't have this....
-
9Consider the catch-22... we could give you a decision tree for choosing one but you'd have no way of evaluating it. :-)– cletusJun 27, 2010 at 16:12
-
Drop Python and use R (or Rpy).– mbqJun 27, 2010 at 16:24
-
1@mbq: prepare to defend such a bold claim. Why drop Python and use R?– Eli BenderskyJun 27, 2010 at 16:26
-
@Eli that is just a suggestion; it may be a simpler solution, so I mentioned it, but of course only Ash R can judge that.– mbqJun 27, 2010 at 16:57
-
Just to keep you from going insane implementing your own logic in Python, why not wrap C4.5 in a subprocess or use that through an Orange module or use the tree-building modules in Orange? ailab.si/orange/doc/reference/C45Learner.htm– ddotsenkoJun 27, 2010 at 20:27
4 Answers
There is a DecisionTreeLearner class as part of the Python library for Russell & Norvig's "Artificial Intelligence: A Modern Approach" textbook.
There is also Scikit Learn: http://scikit-learn.org/stable/modules/tree.html#classification Haven't tried it though (but I'm about to).
I was finding python decision tree library, too. there are many open source decision tree libraries on the internate, and I found out DecisionTree from Kak, who is a professor in Purdue, is the most useful one.
just want to update the information, so people who are looking for decision tree library can save some effort.
Unfortunately, the library does not implement numeric feature values and treats each number as a different class.