开发者

Java Decision Tree for Numeric Attributes & Classes

I'm looking for a java lib开发者_运维技巧rary for decision trees which accepts numeric attributes and classes/grades. Weka's J48 deals with discrete attributes but doesn't accept numeric ones.

Thanks


Not true, Weka's J48 (a variation of C4.5) does support numeric attributes. This is the main difference from the ID3 algorithm (among other things)


EDIT:

It appears you were referring to numeric output class rather than numeric input attributes. In this case, you are looking for model/regression trees. Weka has an implementation of the M5 algorithm by R. Quinlan (the same guy who originally introduced the C4.5 algorithm for discrete classes) in weka.classifiers.trees.M5P. The algorithm is similar to the usual C4.5 except it uses standard deviation instead of entropy, also the leaf nodes contain a regression model (or simply the mean).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜