Package weka.core

Examples of weka.core.Option


   */
  public Enumeration listOptions() {

    Vector newVector = new Vector(2);

    newVector.addElement(new Option(
              "\tNumber of execution slots.\n"
              + "\t(default 1 - i.e. no parallelism)",
              "num-slots", 1, "-num-slots <num>"));

    Enumeration enu = super.listOptions();
View Full Code Here


   * Returns an enumeration describing the available options.
   * @return an enumeration of all the available options.
   **/
  public Enumeration listOptions () {
    Vector newVector = new Vector(4);
    newVector.addElement(new Option(
  "\tclass name of base learner to use for \taccuracy estimation.\n"
  + "\tPlace any classifier options LAST on the command line\n"
  + "\tfollowing a \"--\". eg.:\n"
  + "\t\t-B weka.classifiers.bayes.NaiveBayes ... -- -K\n"
  + "\t(default: weka.classifiers.rules.ZeroR)",
  "B", 1, "-B <base learner>"));
   
    newVector.addElement(new Option(
  "\tnumber of cross validation folds to use for estimating accuracy.\n"
  + "\t(default=5)",
  "F", 1, "-F <num>"));
   
    newVector.addElement(new Option(
  "\tSeed for cross validation accuracy testimation.\n"
  + "\t(default = 1)",
  "R", 1,"-R <seed>"));
   
    newVector.addElement(new Option(
  "\tthreshold by which to execute another cross validation\n"
  + "\t(standard deviation---expressed as a percentage of the mean).\n"
  + "\t(default: 0.01 (1%))",
  "T", 1, "-T <num>"));
   
    newVector.addElement(new Option(
        "\tPerformance evaluation measure to use for selecting attributes.\n" +
        "\t(Default = accuracy for discrete class and rmse for numeric class)",
        "E", 1, "-E <acc | rmse | mae | f-meas | auc>"));

    if ((m_BaseClassifier != null) &&
  (m_BaseClassifier instanceof OptionHandler)) {
      newVector.addElement(new Option("", "", 0, "\nOptions specific to scheme "
              + m_BaseClassifier.getClass().getName()
              + ":"));
      Enumeration enu = ((OptionHandler)m_BaseClassifier).listOptions();

      while (enu.hasMoreElements()) {
View Full Code Here

  public Enumeration listOptions() {
    Vector  result;
   
    result = new Vector();

    result.addElement(new Option(
  "\tThe regular expression that the attribute names must match.\n"
  + "\t(default: ([\\s\\S]+))",
  "find", 1, "-find <regexp>"));

    result.addElement(new Option(
  "\tThe regular expression to replace matching attributes with.\n"
  + "\t(default: $0)",
  "replace", 1, "-replace <regexp>"));

    result.addElement(new Option(
  "\tReplaces all occurrences instead of just the first.\n"
  + "\t(default: only first occurrence)",
  "all", 0, "-all"));

    result.addElement(new Option(
  "\tThe attribute range to work on.\n"
  + "This is a comma separated list of attribute indices, with "
        + "\"first\" and \"last\" valid values.\n"
        + "\tSpecify an inclusive range with \"-\".\n"
        + "\tE.g: \"first-3,5,6-10,last\".\n"
  + "\t(default: first-last)",
  "R", 1, "-R <range>"));

    result.addElement(new Option(
  "\tInverts the attribute selection range.\n"
  + "\t(default: off)",
  "V", 0, "-V"));

    return result.elements();
View Full Code Here

   */
  public Enumeration listOptions() {

    Vector newVector = new Vector(1);

    newVector.addElement(new Option(
            "\tMaximum variance percentage allowed (default 99)",
            "M", 1, "-M <max variance %>"));


    return newVector.elements();
View Full Code Here

    String string = "\tThe minimum number of objects in a bucket (default: 6).";

    Vector newVector = new Vector(1);

    newVector.addElement(new Option(string, "B", 1,
            "-B <minimum bucket size>"));

    return newVector.elements();
  }
View Full Code Here

    Vector result = new Vector();
    Enumeration enm = super.listOptions();
    while (enm.hasMoreElements())
      result.add(enm.nextElement());

    result.addElement(new Option(
        "\tA filter to apply (can be specified multiple times).",
        "F", 1, "-F <classname [options]>"));

    result.addElement(new Option(
        "\tAn attribute range (can be specified multiple times).\n"
  + "\tFor each filter a range must be supplied. 'first' and 'last'\n"
  + "\tare valid indices. 'inv(...)' around the range denotes an\n"
  + "\tinverted range.",
        "R", 1, "-R <range>"));

    result.addElement(new Option(
        "\tFlag for leaving unused attributes out of the output, by default\n"
  + "\tthese are included in the filter output.",
        "U", 0, "-U"));

    return result.elements();
View Full Code Here

    enm = super.listOptions();
    while (enm.hasMoreElements())
      result.addElement(enm.nextElement());

    result.addElement(new Option(
  "\tThe file containing the serialized model.\n"
  + "\t(required)",
  "model", 1, "-model <filename>"));

    return result.elements();
View Full Code Here

      optionsText.append("\nOptions specific to "
          + classifier.getClass().getName()
          + ":\n\n");
      Enumeration enu = ((OptionHandler)classifier).listOptions();
      while (enu.hasMoreElements()) {
        Option option = (Option) enu.nextElement();
        optionsText.append(option.synopsis() + '\n');
        optionsText.append(option.description() + "\n");
      }
    }

    // Get global information (if available)
    if (globalInfo) {
View Full Code Here

   */
   public Enumeration listOptions () {
     Vector result = new Vector();

     result.addElement(
         new Option("\tSQL query to execute.",
                    "Q",1,"-Q <query>"));
    
     result.addElement(
         new Option("\tReturn sparse rather than normal instances.",
                    "S", 0, "-S"));
    
     result.addElement(
         new Option("\tThe username to use for connecting.",
                    "U", 1, "-U <username>"));
    
     result.addElement(
         new Option("\tThe password to use for connecting.",
                    "P", 1, "-P <password>"));
    
     result.addElement(
         new Option("\tEnables debug output.",
                    "D", 0, "-D"));
    
     return result.elements();
   }
View Full Code Here

   */
  public Enumeration listOptions()  {

    Vector vec = new Vector(4);
   
    vec.addElement(new Option(
       "\tSets the method to use. Valid values are 0 (1-against-all),\n"
       +"\t1 (random codes), 2 (exhaustive code), and 3 (1-against-1). (default 0)\n",
       "M", 1, "-M <num>"));
    vec.addElement(new Option(
       "\tSets the multiplier when using random codes. (default 2.0)",
       "R", 1, "-R <num>"));
    vec.addElement(new Option(
        "\tUse pairwise coupling (only has an effect for 1-against1)",
        "P", 0, "-P"));

    Enumeration enu = super.listOptions();
    while (enu.hasMoreElements()) {
View Full Code Here

TOP

Related Classes of weka.core.Option

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.