Пример #1
0
  /**
   * Main method for testing this class.
   *
   * @param argv the options
   */
  public static void main(String[] argv) {

    try {
      System.out.println(Evaluation.evaluateModel(new Decorate(), argv));
    } catch (Exception e) {
      System.err.println(e.getMessage());
    }
  }
  /**
   * Main method for testing this class
   *
   * @param argv options
   */
  public static void main(String[] argv) {

    try {
      System.out.println(Evaluation.evaluateModel(new UnivariateLinearRegression(), argv));
    } catch (Exception e) {
      System.out.println(e.getMessage());
      e.printStackTrace();
    }
  }
Пример #3
0
 /**
  * runs the classifier instance with the given options.
  *
  * @param classifier the classifier to run
  * @param options the commandline options
  */
 public static void runClassifier(Classifier classifier, String[] options) {
   try {
     System.out.println(Evaluation.evaluateModel(classifier, options));
   } catch (Exception e) {
     if (((e.getMessage() != null) && (e.getMessage().indexOf("General options") == -1))
         || (e.getMessage() == null)) {
       e.printStackTrace();
     } else {
       System.err.println(e.getMessage());
     }
   }
 }