use of weka.classifiers.bayes.NaiveBayes in project dkpro-tc by dkpro.
the class WekaArffTest method main.
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
File train = new File("src/main/resources/arff/manyInstances/train.arff.gz");
File test = new File("src/main/resources/arff/manyInstances/test.arff.gz");
Instances trainData = WekaUtils.getInstances(train, false);
Instances testData = WekaUtils.getInstances(test, false);
Classifier cl = new NaiveBayes();
// no problems until here
Evaluation eval = new Evaluation(trainData);
eval.evaluateModel(cl, testData);
}
Aggregations