/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { java.util.Vector<String> result = new java.util.Vector<String>(); result.add("-S"); result.add("" + getAttributeSelectionMethod().getSelectedTag().getID()); if (!getEliminateColinearAttributes()) { result.add("-C"); } result.add("-R"); result.add("" + getRidge()); if (getMinimal()) { result.add("-minimal"); } if (getOutputAdditionalStats()) { result.add("-additional-stats"); } if (getUseQRDecomposition()) { result.add("-use-qr"); } 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() { java.util.Vector<String> result = new java.util.Vector<String>(); result.add("-S"); result.add("" + getAttributeSelectionMethod().getSelectedTag().getID()); if (!getEliminateColinearAttributes()) { result.add("-C"); } result.add("-R"); result.add("" + getRidge()); if (getMinimal()) { result.add("-minimal"); } if (getOutputAdditionalStats()) { result.add("-additional-stats"); } if (getUseQRDecomposition()) { result.add("-use-qr"); } Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }