public static void main(String[] args) {
    String dataFile = DEFAULT_DATA_FILE;
    int trainingExamples = DEFAULT_TRAINING_EXAMPLES;
    for(int i = 0; i + 1 < args.length; i += 2) {
      if(args[i].equals("-f")) {
        dataFile = args[i + 1];
      }
      else if(args[i].equals("-e")) {
        trainingExamples = Integer.parseInt(args[i + 1]);
      }
    }

    List <Example> all = readFile(dataFile);

    List <Example> examples = new ArrayList <Example> ();
    List <Example> validationSet = new ArrayList <Example> ();
    for(int i = 0; i < trainingExamples; i++) {
      examples.add(all.get(i));
    }
    for(int i = DEFAULT_TRAINING_EXAMPLES; i < all.size(); i++) {
      validationSet.add(all.get(i));
    }
    System.out.println(testClassifier(examples, validationSet));
  }