@Override public void setOptions(String[] options) throws Exception { setPathToPreConstructedFilter(Utils.getOption("load-filter", options)); super.setOptions(options); }
/** * Parses a given list of options. Valid options are:<p> * * -W classname <br> * Specify the full class name of the base learner.<p> * * -I num <br> * Set the number of iterations (default 10). <p> * * -S num <br> * Set the random number seed (default 1). <p> * * Options after -- are passed to the designated classifier.<p> * * @param options the list of options as an array of strings * @exception Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String seed = Utils.getOption('S', options); if (seed.length() != 0) { setSeed(Integer.parseInt(seed)); } else { setSeed(1); } super.setOptions(options); }
/** * Parses a given list of options. Valid options are:<p> * * -W classname <br> * Specify the full class name of the base learner.<p> * * -I num <br> * Set the number of iterations (default 10). <p> * * -S num <br> * Set the random number seed (default 1). <p> * * Options after -- are passed to the designated classifier.<p> * * @param options the list of options as an array of strings * @exception Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String seed = Utils.getOption('S', options); if (seed.length() != 0) { setSeed(Integer.parseInt(seed)); } else { setSeed(1); } super.setOptions(options); }
/** * Parses a given list of options. Valid options are:<p> * * -W classname <br> * Specify the full class name of the base learner.<p> * * -I num <br> * Set the number of iterations (default 10). <p> * * Options after -- are passed to the designated classifier.<p> * * @param options the list of options as an array of strings * @exception Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String iterations = Utils.getOption('I', options); if (iterations.length() != 0) { setNumIterations(Integer.parseInt(iterations)); } else { setNumIterations(defaultNumberOfIterations()); } super.setOptions(options); }
/** * Parses a given list of options. Valid options are:<p> * * -W classname <br> * Specify the full class name of the base learner.<p> * * -I num <br> * Set the number of iterations (default 10). <p> * * Options after -- are passed to the designated classifier.<p> * * @param options the list of options as an array of strings * @exception Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String iterations = Utils.getOption('I', options); if (iterations.length() != 0) { setNumIterations(Integer.parseInt(iterations)); } else { setNumIterations(defaultNumberOfIterations()); } super.setOptions(options); }
super.setOptions(options);
super.setOptions(options);
setSearch(ASSearch.forName(searchName, searchSpec)); super.setOptions(options);
setSearch(ASSearch.forName(searchName, searchSpec)); super.setOptions(options);
this.setNearestNeighbourSearchAlgorithm(new LinearNNSearch()); super.setOptions(options);
this.setNearestNeighbourSearchAlgorithm(new LinearNNSearch()); super.setOptions(options);
super.setOptions(options);
setPartitionGenerator(new J48()); super.setOptions(options); Utils.checkForRemainingOptions(options);
/** * Parses a given list of options. <p/> * <!-- options-start --> <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String binsString = Utils.getOption('B', options); if (binsString.length() != 0) { setNumBins(Integer.parseInt(binsString)); } else { setNumBins(10); } setDeleteEmptyBins(Utils.getFlag('E', options)); setUseEqualFrequency(Utils.getFlag('F', options)); setMinimizeAbsoluteError(Utils.getFlag('A', options)); String tmpStr = Utils.getOption('K', options); String[] tmpOptions = Utils.splitOptions(tmpStr); if (tmpOptions.length != 0) { tmpStr = tmpOptions[0]; tmpOptions[0] = ""; setEstimator(((UnivariateDensityEstimator) Utils.forName(UnivariateDensityEstimator.class, tmpStr, tmpOptions))); } super.setOptions(options); Utils.checkForRemainingOptions(options); }
super.setOptions(options);
/** * Parses a given list of options. <p/> * <!-- options-start --> <!-- options-end --> * * @param options the list of options as an array of strings * @throws Exception if an option is not supported */ public void setOptions(String[] options) throws Exception { String binsString = Utils.getOption('B', options); if (binsString.length() != 0) { setNumBins(Integer.parseInt(binsString)); } else { setNumBins(10); } setDeleteEmptyBins(Utils.getFlag('E', options)); setUseEqualFrequency(Utils.getFlag('F', options)); setMinimizeAbsoluteError(Utils.getFlag('A', options)); String tmpStr = Utils.getOption('K', options); String[] tmpOptions = Utils.splitOptions(tmpStr); if (tmpOptions.length != 0) { tmpStr = tmpOptions[0]; tmpOptions[0] = ""; setEstimator(((UnivariateDensityEstimator) Utils.forName(UnivariateDensityEstimator.class, tmpStr, tmpOptions))); } super.setOptions(options); Utils.checkForRemainingOptions(options); }
super.setOptions(options);