
7 Aug
2008
7 Aug
'08
12:46 p.m.
I already found it, but I thought this was pretty odd at first, so who can tell me what might be going wrong here : code : Map<Object,Double> die = classifier.distributionForInstance(instance); double estimate = 0.0; if (die != null) { System.out.println("size " + die.size()); estimate = die.get(new Integer(1)); <-- line 94 } ------------------------------------------------------------------------- output : size 2 java.lang.NullPointerException at be.svlandeg.pi.classification.JavaMLClassifier.eval(JavaMLClassifier.java:94) Obviously, "die" is not null... -Sofie