Esempio n. 1
0
  public EM_Cluster(String tf, String[] options) throws Exception {
    this.model = new EM();
    this.training_f = tf;
    this.options = options;

    BufferedReader r = new BufferedReader(new FileReader(tf));
    Instances data = new Instances(r);

    model.setOptions(options);
    model.buildClusterer(data);
  }