I am using Weka and applying J48 to build my classifier. I have 40 features with 2000 instances (700 class a and 1300 class b).
The J48 decision tree is just using 2 features out of 40! Is there anyway to allow J48 to use all features or is there any other algorithm that allows using all features?
Thanks in advance.
It is not necessary that all the 40 features are needed for the classification. Because some features might be redundant (e.g. correlated) or does not contain discriminatory information.
You can run feature selection before from the
Select attributestab in Weka Explorer and see which features are important.Also you can test classifiers such as
SVM(libSVM or SMO),Neural Network( MultilayerPerceptron) and/orRandom Forestas they tend to give the best classification results in general (problem dependent)