|
I want to apply the following algorithm for my feature selection:
I am pretty new from weka.. so I would like to know how can can select a set of attributes that appear in the first 3 level. What classes should I use? |
|
I've tried similar things with Weka's J48 classifier (it's implementation of C4.5). Unfortunately, this quite a pain. The only way I found was via the command line using the -g option, which outputs a graph representation of the classifier. e.g.
You could capture this text and parse it to get the node names. |
|
I would suggest you post such Weka-specific questions to the Weka mailing list (preferably after looking briefly at the documentation, which you can find at the Weka home page). |
|
this algorithm works pretty nice for the feature selection. but unfortunately there is no direct way of performing the same in weka. if you want to run the same indirectly then you can perform following steps: 1. load your dataset. 2. go to classifier selection and select C45 means J48 from the tree based classifier list. 3. perform the classification. 4. tree model will be generated and will be shown in the right side output panel. 5. from the generated tree find out the first three level of attributes. 6. now load the same dataset again. 7. use the filter remove from the attribute.unsupervised list and remove the attributes which are not in you list which you had generated in the step 5. 8. now classify the data with any of the other classifier that you want to use. i hope this will be helpful to you... regards, Ankit. |