private Map<Object, Double> predictMatchNB( List<DataEntry> trainingset, double[] toPredict, Estimator e) throws Exception { NaiveBayes nb = new NaiveBayes(trainingset, e); return nb.calculateProbabilityForClassifications(toPredict); }