Refine search
/** * Parses a given list of options. * <p/> * * <!-- options-start --> Valid options are: * <p/> * * <pre> * -A <alpha> * Initial count (alpha) * </pre> * * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String sAlpha = Utils.getOption('A', options); if (sAlpha.length() != 0) { m_fAlpha = (new Float(sAlpha)).floatValue(); } else { m_fAlpha = 0.5f; } Utils.checkForRemainingOptions(options); } // setOptions
public void setOptions(String[] options) throws Exception { setUseConjugateGradientDescent(Utils.getFlag('C', options)); String ridgeString = Utils.getOption('R', options); if (ridgeString.length() != 0) { m_Ridge = Double.parseDouble(ridgeString); String maxItsString = Utils.getOption('M', options); if (maxItsString.length() != 0) { m_MaxIts = Integer.parseInt(maxItsString); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String value; setSkipTitle(Utils.getFlag("skip-title", options)); value = Utils.getOption("W", options); if (value.isEmpty()) throw new Exception("No classname provided!"); setClassname(value); super.setOptions(options); }
public void setOptions(String[] options) throws Exception { setUseConjugateGradientDescent(Utils.getFlag('C', options)); String ridgeString = Utils.getOption('R', options); if (ridgeString.length() != 0) { m_Ridge = Double.parseDouble(ridgeString); String maxItsString = Utils.getOption('M', options); if (maxItsString.length() != 0) { m_MaxIts = Integer.parseInt(maxItsString); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption('N', options); if (optionString.length() != 0) { setMaxInstancesInLeaf(Integer.parseInt(optionString)); } else { setMaxInstancesInLeaf(40); } setContainChildBalls(Utils.getFlag('R', options)); }
/** * Parses a given list of options. * <p/> * * <!-- options-start --> Valid options are: * <p/> * * <pre> * -A <alpha> * Initial count (alpha) * </pre> * * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String sAlpha = Utils.getOption('A', options); if (sAlpha.length() != 0) { m_fAlpha = (new Float(sAlpha)).floatValue(); } else { m_fAlpha = 0.5f; } Utils.checkForRemainingOptions(options); } // setOptions
public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption("N", options); if (optionString.length() > 0) { setNumComponents(Integer.parseInt(optionString)); setNumComponents(-1); optionString = Utils.getOption("M", options); if (optionString.length() > 0) { setMaxNumComponents(Integer.parseInt(optionString)); setMaxNumComponents(5); optionString = Utils.getOption("S", options); if (optionString.length() > 0) { setSeed(Integer.parseInt(optionString)); setSeed(1); optionString = Utils.getOption("B", options); if (optionString.length() > 0) { setNumBootstrapRuns(Integer.parseInt(optionString)); setNumBootstrapRuns(10); m_UseNormalizedEntropy = Utils.getFlag("E", options); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String value; setSkipTitle(Utils.getFlag("skip-title", options)); value = Utils.getOption("W", options); if (value.isEmpty()) throw new Exception("No classname provided!"); setClassname(value); super.setOptions(options); }
/** * Parses a given list of options. * <p/> * <!-- options-start --> * Valid options are: <p/> * * <pre> -N <num> * number of clusters. (default = 2).</pre> * * <pre> -S <num> * Random number seed. * (default 1)</pre> * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption('N', options); if (optionString.length() != 0) { setNumClusters(Integer.parseInt(optionString)); } super.setOptions(options); Utils.checkForRemainingOptions(options); }
public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption("N", options); if (optionString.length() > 0) { setNumComponents(Integer.parseInt(optionString)); setNumComponents(-1); optionString = Utils.getOption("M", options); if (optionString.length() > 0) { setMaxNumComponents(Integer.parseInt(optionString)); setMaxNumComponents(5); optionString = Utils.getOption("S", options); if (optionString.length() > 0) { setSeed(Integer.parseInt(optionString)); setSeed(1); optionString = Utils.getOption("B", options); if (optionString.length() > 0) { setNumBootstrapRuns(Integer.parseInt(optionString)); setNumBootstrapRuns(10); m_UseNormalizedEntropy = Utils.getFlag("E", options); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String tmpStr; tmpStr = Utils.getOption('W', options); if (tmpStr.length() > 0) { setClassname(tmpStr); } else { setClassname(this.getClass().getName()); } setUseStars(!Utils.getFlag("nostars", options)); setDir(Utils.getOption("dir", options)); setSilent(Utils.getFlag("silent", options)); }
/** * Parses a given list of options. * <p/> * <!-- options-start --> * Valid options are: <p/> * * <pre> -N <num> * number of clusters. (default = 2).</pre> * * <pre> -S <num> * Random number seed. * (default 1)</pre> * <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption('N', options); if (optionString.length() != 0) { setNumClusters(Integer.parseInt(optionString)); } super.setOptions(options); Utils.checkForRemainingOptions(options); }
String expString = Utils.getOption('E', options); if (expString.length() != 0) { setExpression(expString); String name = Utils.getOption('N', options); if (name.length() != 0) { setName(name); setDebug(Utils.getFlag('D', options)); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String optionString = Utils.getOption('N', options); if (optionString.length() != 0) { setMaxInstancesInLeaf(Integer.parseInt(optionString)); } else { setMaxInstancesInLeaf(40); } setContainChildBalls(Utils.getFlag('R', options)); }
while ((attS = Utils.getOption('A', options)).length() > 0) { addAttributeSpec(attS); Utils.checkForRemainingOptions(options);
String optionString = Utils.getOption('S', options); if (optionString.length() != 0) { Double temp = Double.valueOf(optionString); setShrinkage(temp.doubleValue()); setMinimizeAbsoluteError(Utils.getFlag('A', options)); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { String tmpStr; tmpStr = Utils.getOption('W', options); if (tmpStr.length() > 0) { setClassname(tmpStr); } else { setClassname(this.getClass().getName()); } setUseStars(!Utils.getFlag("nostars", options)); setDir(Utils.getOption("dir", options)); setSilent(Utils.getFlag("silent", options)); }
public void setOptions(String[] options) throws Exception { String tmpStr = Utils.getOption('S', options); if (tmpStr.length() != 0) { setRandomSeed(Integer.parseInt(tmpStr)); tmpStr = Utils.getOption('Z', options); if (tmpStr.length() != 0) { setSampleSize(Integer.parseInt(tmpStr)); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. * <p/> * * Valid options are: * <p> * * -U <br> * Use unsmoothed predictions. * <p> * * -R <br> * Build a regression tree rather than a model tree. * <p> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ @Override public void setOptions(String[] options) throws Exception { setUnpruned(Utils.getFlag('N', options)); setUseUnsmoothed(Utils.getFlag('U', options)); setBuildRegressionTree(Utils.getFlag('R', options)); String optionString = Utils.getOption('M', options); if (optionString.length() != 0) { setMinNumInstances((new Double(optionString)).doubleValue()); } super.setOptions(options); Utils.checkForRemainingOptions(options); }