我按照http://weka.wikispaces.com/Use+Weka+in+your+Java+code
中的步骤使用Weka API实现增量分类器但是,我没有找到任何评估分类器的选项(使用测试集),因为唯一的文档是使用小数据集(我没有,这就是为什么我' m使用可更新的分类器)。有没有可更新的评估?或者唯一的方法是手动完成它?
感谢您的帮助!
答案 0 :(得分:1)
WEKA中的任何分类器都可以使用Evaluation
对象进行测试,如下所示:
Evaluation eTest = new Evaluation(testInstances);
eTest.evaluateModel(yourUpdatableModelHere, testInstances);
//Print the results
System.out.println(eTest.toSummaryString());
//Get the confusion matrix
double[][] confMatrix = eTest.confusionMatrix();
有关详情,请参阅Evaluation
here上的JavaDoc。