public void evaluateModel(weka.classifiers.Classifier classifier, weka.core.Instances instances) { double[] v = WekaUtils.ClassifyInstances(instances, classifier); //weka.classifiers.Evaluation eval = new weka.classifiers.Evaluation(instances, m_costMatrix); //v = eval.evaluateModel(classifier, instances); evaluateModel(v, instances); //int n = 0; //for (int i = 0; i < v.Length; ++i) // if (v[i] != 0) // n++; }