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();
}
}