Java Examples for weka.core.RevisionHandler

The following java examples will help you to understand the usage of weka.core.RevisionHandler. These source code samples are taken from different open source projects.

Example 1
Project: android-ml-weka-master  File: RevisionUtils.java View source code
/**
   * For testing only. The first parameter must be a classname of a
   * class implementing the weka.core.RevisionHandler interface.
   * 
   * @param args	the commandline arguments
   * @throws Exception	if something goes wrong
   */
public static void main(String[] args) throws Exception {
    if (args.length != 1) {
        System.err.println("\nUsage: " + RevisionUtils.class.getName() + " <classname>\n");
        System.exit(1);
    }
    RevisionHandler handler = (RevisionHandler) Class.forName(args[0]).newInstance();
    System.out.println("Type: " + getType(handler));
    System.out.println("Revision: " + extract(handler));
}