Examples of pprintConfusionMatrix()


Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        engList.add(results[gm.getIndex("CHEM")]);
      }

    }
    ce.pprintPrecisionRecallEval();
    ce.pprintConfusionMatrix();
   
    for(String word : unknownFeatures.keySet()) {
      Collection<String> f = unknownFeatures.get(word);
      double [] results = gm.eval(f.toArray(new String[0]));
      System.out.println(word + "\t" + results[gm.getIndex("CHEM")] + "\t" + NGramBuilder.getInstance().testWordProb(word) + "\t" + NGram.getInstance().testWordSuffixProb(word));     
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        String result = dt.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
      ce.pprintPrecisionRecallEval();
      //return;
    }
   
    if(true) {
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        String result = dl.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
      ce.pprintPrecisionRecallEval();
      //return;
    }
   
    ce = new ClassificationEvaluator();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

      System.out.println(be.getClassLabel() + "\t" + mnb.testBag(be.getFeatures()));
      ce.logEvent(be.getClassLabel(), mnb.bestResult(results));
    }
    System.out.println(ce.getAccuracy());
    System.out.println(ce.getKappa());     
    ce.pprintConfusionMatrix();
    ce.pprintPrecisionRecallEval();

    ce = new ClassificationEvaluator();
    List<Event> trainEvents = new ArrayList<Event>();
    List<Event> testEvents = new ArrayList<Event>();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

      //System.out.println(event.getOutcome() + "\t" + result + "\t" + results[gm.getIndex(event.getOutcome())] + "\t" + StringTools.arrayToList(event.getContext()));
      ce.logEvent(event.getOutcome(), result);
    }
    System.out.println(ce.getAccuracy());
    System.out.println(ce.getKappa());     
    ce.pprintConfusionMatrix();
    ce.pprintPrecisionRecallEval();
   
    if(false) {
     
      List<Bag<String>> trueBags = new ArrayList<Bag<String>>();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

      System.out.println(terms.get(j) + "\t" + (thiscp - thisncp));
      ce.logEvent(refClass, respClass);
    }
    System.out.println(ce.getAccuracy());
    System.out.println(ce.getKappa());
    ce.pprintConfusionMatrix();
    ce.pprintPrecisionRecallEval();
  }

}
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        sa[e.getContext().length] = rf;
        events.set(i, new Event(e.getOutcome(), sa));
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
      ce.pprintPrecisionRecallEval();
      //return;
    }

   
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

      }
      System.out.println("seed: " + seed);
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
    //}
    ce.pprintConfusionMatrix();
    ce.pprintPrecisionRecallEval();

  }

}
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        String result = dt.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
      ce.pprintPrecisionRecallEval();
      //return;
    }
   
    if(false) {
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.misc.ClassificationEvaluator.pprintConfusionMatrix()

        String result = dl.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
      ce.pprintPrecisionRecallEval();
      //return;
    }
   
    if(true) {
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.