Kevin
Kevin

Reputation: 6833

How to determine the most informative feature in a tree learned by Weka

I used the weka to train a J48 classifier,and it returned a textual representation of tree. Now if I want to determine which feature is the most informative,how could I proceed?Any idea is welcomed. Thanks in advance.

Upvotes: 1

Views: 1708

Answers (1)

Nate Kohl
Nate Kohl

Reputation: 35914

It's possible that by "the most informative feature" you mean "the feature with the highest information gain".

If so, I think the J48 algorithm constructs decision trees such that the first (or highest) node in the decision tree is associated with the feature that has the highest information gain.

If that's correct, then you should be able to look at the top of your tree to determine which feature is the most informative.

Upvotes: 6

Related Questions