/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { ArrayList<String> options = new ArrayList<String>(); options.add("-L"); options.add("" + getLeafPredictionStrategy().getSelectedTag().getID()); options.add("-S"); options.add("" + getSplitCriterion().getSelectedTag().getID()); options.add("-E"); options.add("" + getSplitConfidence()); options.add("-H"); options.add("" + getHoeffdingTieThreshold()); options.add("-M"); options.add("" + getMinimumFractionOfWeightInfoGain()); options.add("-G"); options.add("" + getGracePeriod()); options.add("-N"); options.add("" + getNaiveBayesPredictionThreshold()); if (m_printLeafModels) { options.add("-P"); } return options.toArray(new String[1]); }
/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { ArrayList<String> options = new ArrayList<String>(); options.add("-L"); options.add("" + getLeafPredictionStrategy().getSelectedTag().getID()); options.add("-S"); options.add("" + getSplitCriterion().getSelectedTag().getID()); options.add("-E"); options.add("" + getSplitConfidence()); options.add("-H"); options.add("" + getHoeffdingTieThreshold()); options.add("-M"); options.add("" + getMinimumFractionOfWeightInfoGain()); options.add("-G"); options.add("" + getGracePeriod()); options.add("-N"); options.add("" + getNaiveBayesPredictionThreshold()); if (m_printLeafModels) { options.add("-P"); } return options.toArray(new String[1]); }