Package uk.ac.cam.ch.wwmm.ptc.experimental.classifiers

Examples of uk.ac.cam.ch.wwmm.ptc.experimental.classifiers.DecisionTree


   
    ClassificationEvaluator ce = new ClassificationEvaluator();
 
    if(true) {
      DecisionTree dt = new DecisionTree(bagEvents);
      dt.printTree();
      for(int i=0;i<testBagEvents.size();i++) {
        BagEvent be = testBagEvents.get(i);
        String result = dt.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
View Full Code Here


   
    ClassificationEvaluator ce = new ClassificationEvaluator();
 
    if(false) {
      ce = new ClassificationEvaluator();
      DecisionTree dt = new DecisionTree(bagEvents);
      dt.printTree();
      for(int i=0;i<testBagEvents.size();i++) {
        BagEvent be = testBagEvents.get(i);
        String result = dt.testBag(be.getFeatures());
        ce.logEvent(be.getClassLabel(), result);
      }
      System.out.println(ce.getAccuracy());
      System.out.println(ce.getKappa());     
      ce.pprintConfusionMatrix();
View Full Code Here

TOP

Related Classes of uk.ac.cam.ch.wwmm.ptc.experimental.classifiers.DecisionTree

Copyright © 2018 www.massapicom. 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.