/** * Set the name of the renderer to use for offscreen chart rendering * operations * * @param rendererName the name of the renderer to use */ @ProgrammaticProperty public void setOffscreenRendererName(String rendererName) { m_offscreenRendererName = rendererName; m_offscreenRenderer = null; }
/** * Set the additional options for the offscreen renderer * * @param additional additional options */ @ProgrammaticProperty public void setOffscreenAdditionalOpts(String additional) { m_additionalOptions = additional; }
/** * Get the naive Bayes estimator in use * * @return the naive Bayes estimator */ @ProgrammaticProperty public NaiveBayes getEstimator() { return m_estimator; }
/** * Set the data to be output by this {@code DataGrid} in textual ARFF format. * * @param data the data to be output in textual ARFF format */ @ProgrammaticProperty public void setData(String data) { m_data = data; }
/** * Set the sort rules to use * * @param sortDetails the sort rules in internal string representation */ @ProgrammaticProperty public void setSortDetails(String sortDetails) { m_sortDetails = sortDetails; }
/** * Set whether to evaluate with respoect to costs * * @param useCosts true to use cost-sensitive evaluation */ @ProgrammaticProperty public void setEvaluateWithRespectToCosts(boolean useCosts) { m_costSensitiveEval = useCosts; }
/** * Set the additional options for the offscreen renderer * * @param additional additional options */ @ProgrammaticProperty public void setOffscreenAdditionalOpts(String additional) { m_additionalOptions = additional; }
/** * Set the name of this step * * @param name the name for this step */ @ProgrammaticProperty @Override public void setName(String name) { m_stepName = name; }
/** * Get the remove filter in use * * @return */ @ProgrammaticProperty public Remove getRemoveFilter() { return m_remove; }
/** * Set the cost matrix to use as a string * * @param cms the cost matrix to use */ @ProgrammaticProperty public void setCostMatrixString(String cms) { m_costString = cms; }
/** * Set internally encoded list of match-replace rules * * @param details the list of match-replace rules */ @ProgrammaticProperty public void setMatchReplaceDetails(String details) { m_matchReplaceDetails = details; }
/** * Set the additional options for the offscreen renderer * * @param additional additional options */ @ProgrammaticProperty public void setOffscreenAdditionalOpts(String additional) { m_additionalOptions = additional; }
/** * Get the evaluation metrics to output (as a comma-separated list). * * @return the evaluation metrics to output */ @ProgrammaticProperty public String getEvaluationMetricsToOutput() { return m_selectedEvalMetrics; }
/** * Set the evaluator to wrap (just calls setWrappedAlgorithm) * * @param eval the evaluator to use */ @ProgrammaticProperty public void setEvaluator(ASEvaluation eval) { setWrappedAlgorithm(eval); }
/** * Set the classifier to train * * @param classifier the classifier to train */ @ProgrammaticProperty public void setClassifier(weka.classifiers.Classifier classifier) { setWrappedAlgorithm(classifier); }
/** * Convenience method - calls {@code setWrappedAlgorithm()} * * @param loader the loader to use */ @ProgrammaticProperty public void setLoader(weka.core.converters.Loader loader) { setWrappedAlgorithm(loader); }
/** * Set the filter. Calls {@code setWrappedAlgorithm()} * * @param filter the filter to use */ @ProgrammaticProperty public void setFilter(weka.filters.Filter filter) { setWrappedAlgorithm(filter); }
/** * Set the saver instance that is wrapped by this step. Convenience method * that delegates to {@code setWrappedAlgorithm()}. * * @param saver the saver instance that is wrapped by this step */ @ProgrammaticProperty public void setSaver(weka.core.converters.Saver saver) { setWrappedAlgorithm(saver); }
/** * Set whether this step is resource intensive (cpu/memory) or not. This * affects which executor service is used to execute the step's processing. * * @param isResourceIntensive true if this step is resource intensive. */ @ProgrammaticProperty public void setStepIsResourceIntensive(boolean isResourceIntensive) { getStepManager().setStepIsResourceIntensive(isResourceIntensive); }
/** * Set whether this step must run single threaded. I.e. on an executor * service which has only one worker thread, thus effectively preventing * more than one copy of the step executing at any one time. * * @param mustRunSingleThreaded true if the step must run single threaded */ @ProgrammaticProperty public void setStepMustRunSingleThreaded(boolean mustRunSingleThreaded) { getStepManager().setStepMustRunSingleThreaded(mustRunSingleThreaded); }