Currently I am trying to use Eclipse to implement weka classifiers, say J48. I check the
website, the simple implementation is
Classifier m_classifier = new J48();
/*Read Training dataset, I omit that part*/
m_classifier.buildClassifier(instancesTrain); //Here, what can I do to set up the
parameter of the J48? In the weka GUI is it simple but I have no idea here.
Another question is, there are some test opinions in Weka GUI, those are:
Use train dataset //Test on the same dataset that the classifier is trained on
Supplied test set //test on a user-specified dataset
Cross-validation //perform a n-fold validation
Percentage split //Train on the percetage of the data and test on the reminder
The default setting is Cross-validation, and if I want to see the learner from "Use
train dataset", how can I change my program?