/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); if (getUseResampling()) { result.add("-Q"); } result.add("-P"); result.add("" + getWeightThreshold()); Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result = new Vector<String>(); if (getUseResampling()) { result.add("-Q"); } result.add("-P"); result.add("" + getWeightThreshold()); if (getResume()) { result.add("-resume"); } Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }