Esempio n. 1
0
 public boolean predict(SingleDecision decision) throws MaltChainedException {
   try {
     if (getGuide().getGuideMode() == ClassifierGuide.GuideMode.BATCH) {
       throw new GuideException("Cannot predict during batch training. ");
     }
     return method.predict(featureVector, decision);
   } catch (NullPointerException e) {
     throw new GuideException("The learner cannot be found. ", e);
   }
 }