/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getUseConjugateGradientDescent()) { options.add("-C"); } options.add("-R"); options.add("" + m_Ridge); options.add("-M"); options.add("" + m_MaxIts); Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }
/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getUseConjugateGradientDescent()) { options.add("-C"); } options.add("-R"); options.add("" + m_Ridge); options.add("-M"); options.add("" + m_MaxIts); Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }