Package com.ipeirotis.gal.core

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


  }

 
  private void computeEvalConfusionMatrix(Worker w) {
    ConfusionMatrix eval_cm = new ConfusionMatrix(this.categories.values());
    eval_cm.empty();
    for (AssignedLabel l : w.getAssignedLabels()) {

      String objectName = l.getObjectName();
      Datum d = this.objects.get(objectName);
      assert (d != null);
View Full Code Here


  private void updateWorkerConfusionMatrix(String workerName) {

    Worker w = this.workers.get(workerName);

    ConfusionMatrix cm = new ConfusionMatrix(this.categories.values());
    cm.empty();

    // Scan all objects and change the confusion matrix for each worker
    // using the class probability for each object
    for (AssignedLabel al : w.getAssignedLabels()) {
View Full Code Here

  public ConfusionMatrix getEstimatedConfusionMatrix(ClassificationMethod clasMethod) {

    ConfusionMatrix confMatrix = new ConfusionMatrix(object.getCategories().values());

    confMatrix.empty();
    for (Datum d : object.getObjects().values()) {
      populateConfusionMatrix(clasMethod, confMatrix, d);
    }
    confMatrix.normalize();
View Full Code Here

  public ConfusionMatrix getConfusionMatrix(ClassificationMethod clasMethod) {

    ConfusionMatrix confMatrix = new ConfusionMatrix(object.getCategories().values());

    confMatrix.empty();

    for (Datum d : object.getObjects().values()) {
      if (!d.isEvaluation())
        continue;
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.