Package org.apache.mahout.classifier

Examples of org.apache.mahout.classifier.ConfusionMatrix.summarize()


    client.setConf(conf);
    JobClient.runJob(conf);
   
    Path outputFiles = new Path(outPath.toString() + "/part*");
    ConfusionMatrix matrix = readResult(dfs, outputFiles, conf, params);
    log.info("{}", matrix.summarize());
  }
 
  public static ConfusionMatrix readResult(FileSystem fs,
                                           Path pathPattern,
                                           Configuration conf,
View Full Code Here


    JobClient.runJob(conf);
   
    Path outputFiles = new Path(outPath, "part*");
    FileSystem dfs = FileSystem.get(outPath.toUri(), conf);   
    ConfusionMatrix matrix = readResult(dfs, outputFiles, conf, params);
    log.info("{}", matrix.summarize());
  }
 
  public static ConfusionMatrix readResult(FileSystem fs,
                                           Path pathPattern,
                                           Configuration conf,
View Full Code Here

    client.setConf(conf);
    JobClient.runJob(conf);

    Path outputFiles = new Path(outPath.toString() + "/part*");
    ConfusionMatrix matrix = readResult(dfs, outputFiles, conf, params);
    log.info("{}",matrix.summarize());
  }

  private static ConfusionMatrix readResult(FileSystem fs, Path pathPattern, Configuration conf, BayesParameters params)
      throws IOException {
  
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.