Codota Logo
SingleClassifierEnhancer.defaultClassifierOptions
Code IndexAdd Codota to your IDE (free)

How to use
defaultClassifierOptions
method
in
weka.classifiers.SingleClassifierEnhancer

Best Java code snippets using weka.classifiers.SingleClassifierEnhancer.defaultClassifierOptions (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 *
 * @return an enumeration of all the available options.
 */
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(3);
 newVector.addElement(new Option(
    "\tFull name of base classifier.\n"
    + "\t(default: " + defaultClassifierString() + 
    ((defaultClassifierOptions().length > 0) ? 
     " with options " + Utils.joinOptions(defaultClassifierOptions()) + ")" : ")"),
    "W", 1, "-W <classifier name>"));
 
 newVector.addAll(Collections.list(super.listOptions()));
 newVector.addElement(new Option(
    "",
    "", 0, "\nOptions specific to classifier "
    + m_Classifier.getClass().getName() + ":"));
 newVector.addAll(Collections.list(((OptionHandler)m_Classifier).listOptions()));
 return newVector.elements();
}
origin: Waikato/weka-trunk

/**
 * Returns an enumeration describing the available options.
 *
 * @return an enumeration of all the available options.
 */
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(3);
 newVector.addElement(new Option(
    "\tFull name of base classifier.\n"
    + "\t(default: " + defaultClassifierString() + 
    ((defaultClassifierOptions().length > 0) ? 
     " with options " + Utils.joinOptions(defaultClassifierOptions()) + ")" : ")"),
    "W", 1, "-W <classifier name>"));
 
 newVector.addAll(Collections.list(super.listOptions()));
 newVector.addElement(new Option(
    "",
    "", 0, "\nOptions specific to classifier "
    + m_Classifier.getClass().getName() + ":"));
 newVector.addAll(Collections.list(((OptionHandler)m_Classifier).listOptions()));
 return newVector.elements();
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Parses a given list of options. Valid options are:<p>
 *
 * -W classname <br>
 * Specify the full class name of the base learner.<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 {
 super.setOptions(options);
 String classifierName = Utils.getOption('W', options);
 if (classifierName.length() > 0) {
  setClassifier(AbstractClassifier.forName(classifierName, null));
  setClassifier(AbstractClassifier.forName(classifierName,
     Utils.partitionOptions(options)));
 } else {
  setClassifier(AbstractClassifier.forName(defaultClassifierString(), null));
  String[] classifierOptions = Utils.partitionOptions(options);
  if (classifierOptions.length > 0) {
   setClassifier(AbstractClassifier.forName(defaultClassifierString(),
                        classifierOptions));
  } else {
   setClassifier(AbstractClassifier.forName(defaultClassifierString(),
                        defaultClassifierOptions()));
  }
 }
}
origin: Waikato/weka-trunk

/**
 * Parses a given list of options. Valid options are:<p>
 *
 * -W classname <br>
 * Specify the full class name of the base learner.<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 {
 super.setOptions(options);
 String classifierName = Utils.getOption('W', options);
 if (classifierName.length() > 0) {
  setClassifier(AbstractClassifier.forName(classifierName, null));
  setClassifier(AbstractClassifier.forName(classifierName,
     Utils.partitionOptions(options)));
 } else {
  setClassifier(AbstractClassifier.forName(defaultClassifierString(), null));
  String[] classifierOptions = Utils.partitionOptions(options);
  if (classifierOptions.length > 0) {
   setClassifier(AbstractClassifier.forName(defaultClassifierString(),
                        classifierOptions));
  } else {
   setClassifier(AbstractClassifier.forName(defaultClassifierString(),
                        defaultClassifierOptions()));
  }
 }
}
weka.classifiersSingleClassifierEnhancerdefaultClassifierOptions

Javadoc

String describing options for default classifier.

Popular methods of SingleClassifierEnhancer

  • getCapabilities
    Returns default capabilities of the base classifier.
  • getOptions
    Gets the current settings of the Classifier.
  • listOptions
    Returns an enumeration describing the available options.
  • setOptions
    Parses a given list of options. Valid options are: -W classname Specify the full class name of the
  • setClassifier
    Set the base learner.
  • defaultClassifierString
    String describing default classifier.
  • getBatchSize
  • getClassifier
    Get the classifier used as the base learner.
  • implementsMoreEfficientBatchPrediction
  • setBatchSize
  • distributionsForInstances
  • distributionsForInstances

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now