Examples of MisclassificationCost


Examples of com.ipeirotis.gal.core.MisclassificationCost

      String from = entries[0];
      String to = entries[1];
      Double cost = Double.parseDouble(entries[2]);

      MisclassificationCost mcc = new MisclassificationCost(from, to,
          cost);
      labels.add(mcc);
    }
    return labels;
  }
View Full Code Here

Examples of com.ipeirotis.gal.scripts.MisclassificationCost

        Category irrelevant = new Category("0");
        categories.add(relevant);
        categories.add(irrelevant);
        DawidSkene ds = new DawidSkene(categories);

        ds.addMisclassificationCost(new MisclassificationCost(relevant.getName(), relevant.getName(), 0.0));
        ds.addMisclassificationCost(new MisclassificationCost(irrelevant.getName(), irrelevant.getName(), 0.0));
        ds.addMisclassificationCost(new MisclassificationCost(relevant.getName(), irrelevant.getName(), 1.0));
        ds.addMisclassificationCost(new MisclassificationCost(irrelevant.getName(), relevant.getName(), 1.0));

        for (Vote vote : votes ) {
           if (vote.sequence <= threshold ) {
              AssignedLabel l = new AssignedLabel( vote.worker, vote.unit, vote.label);
              ds.addAssignedLabel(l);
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.