Package com.ipeirotis.gal.core

Examples of com.ipeirotis.gal.core.ConfusionMatrix.addError()


      String assignedCategory = l.getCategoryName();
      String correctCategory = d.getEvaluationCategory();

      // Double currentCount = eval_cm.getErrorRate(correctCategory,
      // assignedCategory);
      eval_cm.addError(correctCategory, assignedCategory, 1.0);
    }
    eval_cm.normalize();
    w.setEvalConfusionMatrix(eval_cm);
  }
 
View Full Code Here


      if (probabilities == null)
        continue; // No other worker labeled the object

      for (String source : probabilities.keySet()) {
        Double error = probabilities.get(source);
        cm.addError(source, destination, error);
      }

    }
    cm.normalize();
View Full Code Here

      Map<String, Double> toClassifiedAs = d.getProbabilityVector(clasMethod);

      for (String toCategory : toClassifiedAs.keySet()) {
        Double prob = toClassifiedAs.get(toCategory);

        confMatrix.addError(fromCategory, toCategory, prob);
      }
    }

    confMatrix.normalize();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.