/** * 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>(); result.add("-M"); result.add("" + m_TransformMethod); 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-S"); options.add("" + getSeed()); 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-S"); options.add("" + getSeed()); 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> result = new Vector<String>(); result.add("-P"); result.add("" + m_Method); result.add("-A"); result.add("" + m_WeightMethod); Collections.addAll(result, super.getOptions()); return result.toArray(new String[result.size()]); }
/** * Gets the current settings of the filter. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-P"); options.add("" + getPartitionGeneratorSpec()); 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 */ public String [] getOptions() { String [] superOptions = super.getOptions(); String [] options = new String [superOptions.length + 2]; int current = 0; options[current++] = "-I"; options[current++] = "" + getNumIterations(); System.arraycopy(superOptions, 0, options, current, superOptions.length); return options; }
/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ public String [] getOptions() { String [] superOptions = super.getOptions(); String [] options = new String [superOptions.length + 2]; int current = 0; options[current++] = "-I"; options[current++] = "" + getNumIterations(); System.arraycopy(superOptions, 0, options, current, superOptions.length); return options; }
/** * 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>(4); result.add("-R"); result.add("" + getMaxIterations()); result.add("-B"); result.add("" + getDiscretizeBin()); 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); // same attribute evaluator options.add("-E"); options.add("" +getEvaluatorSpec()); // same for search options.add("-S"); options.add("" + getSearchSpec()); 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); // same attribute evaluator options.add("-E"); options.add("" +getEvaluatorSpec()); // same for search options.add("-S"); options.add("" + getSearchSpec()); Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }
@Override public String[] getOptions() { List<String> options = new ArrayList<String>(); if (getPathToPreConstructedFilter() != null && getPathToPreConstructedFilter().length() > 0) { options.add("-load-filter"); options.add(getPathToPreConstructedFilter()); } String[] superOpts = super.getOptions(); for (String s : superOpts) { options.add(s); } return options.toArray(new String[options.size()]); }
/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-U"); options.add("" + getWeightingKernel()); if ( (getKNN() == 0) && m_UseAllK) { options.add("-K"); options.add("-1"); } else { options.add("-K"); options.add("" + getKNN()); } options.add("-A"); options.add(m_NNSearch.getClass().getName()+" "+Utils.joinOptions(m_NNSearch.getOptions()));; 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-U"); options.add("" + getWeightingKernel()); if ( (getKNN() == 0) && m_UseAllK) { options.add("-K"); options.add("-1"); } else { options.add("-K"); options.add("" + getKNN()); } options.add("-A"); options.add(m_NNSearch.getClass().getName()+" "+Utils.joinOptions(m_NNSearch.getOptions()));; 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-B"); options.add("" + getNumBins()); if (getDeleteEmptyBins()) { options.add("-E"); } if (getUseEqualFrequency()) { options.add("-F"); } if (getMinimizeAbsoluteError()) { options.add("-A"); } options.add("-K"); if (getEstimator() instanceof OptionHandler) { options.add("" + getEstimator().getClass().getName() + " " + Utils.joinOptions(((OptionHandler)getEstimator()).getOptions())); } else { options.add("" + getEstimator().getClass().getName()); } 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 */ public String [] getOptions() { Vector<String> options = new Vector<String>(); options.add("-B"); options.add("" + getNumBins()); if (getDeleteEmptyBins()) { options.add("-E"); } if (getUseEqualFrequency()) { options.add("-F"); } if (getMinimizeAbsoluteError()) { options.add("-A"); } options.add("-K"); if (getEstimator() instanceof OptionHandler) { options.add("" + getEstimator().getClass().getName() + " " + Utils.joinOptions(((OptionHandler)getEstimator()).getOptions())); } else { options.add("" + getEstimator().getClass().getName()); } 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() { String[] superOptions = super.getOptions(); String[] options = new String[superOptions.length + 5]; int current = 0; if (getIgnoreCaseForNames()) { options[current++] = "-I"; } if (getSuppressMappingReport()) { options[current++] = "-M"; } if (getTrim()) { options[current++] = "-trim"; } if (getModelPath() != null && getModelPath().length() > 0) { options[current++] = "-L"; options[current++] = getModelPath(); } System.arraycopy(superOptions, 0, options, current, superOptions.length); current += superOptions.length; while (current < options.length) { options[current++] = ""; } return options; }
/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { String[] superOptions = super.getOptions(); String[] options = new String[superOptions.length + 5]; int current = 0; if (getIgnoreCaseForNames()) { options[current++] = "-I"; } if (getSuppressMappingReport()) { options[current++] = "-M"; } if (getTrim()) { options[current++] = "-trim"; } if (getModelPath() != null && getModelPath().length() > 0) { options[current++] = "-L"; options[current++] = getModelPath(); } System.arraycopy(superOptions, 0, options, current, superOptions.length); current += superOptions.length; while (current < options.length) { options[current++] = ""; } return options; }