for(int i=0;i<eventBags.size();i++) {
BagEvent be = eventBags.get(i);
//for(BagEvent be : eventBags) {
Map<String,Double> results = mnb.testBag(be.getClassLabel(), be.getFeatures());
System.out.println(be.getClassLabel() + "\t" + mnb.testBag(be.getFeatures()));
ce.logEvent(be.getClassLabel(), mnb.bestResult(results));
String rf = "MNB:" + mnb.bestResult(results);
Event e = events.get(i);
String [] sa = new String[e.getContext().length + 1];
for(int j=0;j<e.getContext().length;j++) {
sa[j] = e.getContext()[j];