Package org.apache.hama.util

Examples of org.apache.hama.util.ProgramDriver$ProgramDescription


import org.apache.hama.util.ProgramDriver;

public class ExampleDriver {

  public static void main(String[] args) {
    ProgramDriver pgd = new ProgramDriver();
    try {
      pgd.addClass("pi", PiEstimator.class, "Pi Estimator");
      pgd.addClass("sssp", SSSP.class, "Single Shortest Path");
      pgd.addClass("mdstsearch", MindistSearch.class,
          "Mindist search / Connected Components");
      pgd.addClass("cmb", CombineExample.class, "Combine");
      pgd.addClass("bench", RandBench.class, "Random Benchmark");
      pgd.addClass("pagerank", PageRank.class, "PageRank");
      pgd.addClass("inlnkcount", InlinkCount.class, "InlinkCount");
      pgd.addClass("bipartite", BipartiteMatching.class, "Bipartite Matching");
      pgd.addClass("semi", SemiClusterJobDriver.class, "Semi Clustering");
      pgd.addClass("kmeans", Kmeans.class, "K-Means Clustering");
      pgd.addClass("gd", GradientDescentExample.class, "Gradient Descent");
      pgd.addClass("neuralnets", NeuralNetwork.class, "Neural Network classification");

      pgd.addClass("gen", Generator.class, "Random Data Generator Util");
      pgd.driver(args);
    } catch (Throwable e) {
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hama.util.ProgramDriver$ProgramDescription

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.