Package weka.core

Examples of weka.core.Option


      e.printStackTrace();
      log.error(e.getMessage());
      log.error("\nOptions:\n");
      Enumeration<Option> en = kmb.listOptions();
      while (en.hasMoreElements()) {
        Option option = en.nextElement();
        log.error(option.synopsis());
        log.error(option.description());
      }
    }
  }
View Full Code Here


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

    newVector.addElement(new Option(
        "\tLearning Rate for the backpropagation algorithm.\n"
        +"\t(Value should be between 0 - 1, Default = 0.3).",
        "L", 1, "-L <learning rate>"));
    newVector.addElement(new Option(
        "\tMomentum Rate for the backpropagation algorithm.\n"
        +"\t(Value should be between 0 - 1, Default = 0.2).",
        "M", 1, "-M <momentum>"));
    newVector.addElement(new Option(
        "\tNumber of epochs to train through.\n"
        +"\t(Default = 500).",
        "N", 1,"-N <number of epochs>"));
    newVector.addElement(new Option(
        "\tPercentage size of validation set to use to terminate\n"
        + "\ttraining (if this is non zero it can pre-empt num of epochs.\n"
        +"\t(Value should be between 0 - 100, Default = 0).",
        "V", 1, "-V <percentage size of validation set>"));
    newVector.addElement(new Option(
        "\tThe value used to seed the random number generator\n"
        + "\t(Value should be >= 0 and and a long, Default = 0).",
        "S", 1, "-S <seed>"));
    newVector.addElement(new Option(
        "\tThe consequetive number of errors allowed for validation\n"
        + "\ttesting before the netwrok terminates.\n"
        + "\t(Value should be > 0, Default = 20).",
        "E", 1, "-E <threshold for number of consequetive errors>"));
    newVector.addElement(new Option(
              "\tGUI will be opened.\n"
        +"\t(Use this to bring up a GUI).",
        "G", 0,"-G"));
    newVector.addElement(new Option(
              "\tAutocreation of the network connections will NOT be done.\n"
        +"\t(This will be ignored if -G is NOT set)",
        "A", 0,"-A"));
    newVector.addElement(new Option(
              "\tA NominalToBinary filter will NOT automatically be used.\n"
        +"\t(Set this to not use a NominalToBinary filter).",
        "B", 0,"-B"));
    newVector.addElement(new Option(
        "\tThe hidden layers to be created for the network.\n"
        + "\t(Value should be a list of comma separated Natural \n"
        + "\tnumbers or the letters 'a' = (attribs + classes) / 2, \n"
        + "\t'i' = attribs, 'o' = classes, 't' = attribs .+ classes)\n"
        + "\tfor wildcard values, Default = a).",
        "H", 1, "-H <comma seperated numbers for nodes on each layer>"));
    newVector.addElement(new Option(
              "\tNormalizing a numeric class will NOT be done.\n"
        +"\t(Set this to not normalize the class if it's numeric).",
        "C", 0,"-C"));
    newVector.addElement(new Option(
              "\tNormalizing the attributes will NOT be done.\n"
        +"\t(Set this to not normalize the attributes).",
        "I", 0,"-I"));
    newVector.addElement(new Option(
              "\tReseting the network will NOT be allowed.\n"
        +"\t(Set this to not allow the network to reset).",
        "R", 0,"-R"));
    newVector.addElement(new Option(
              "\tLearning rate decay will occur.\n"
        +"\t(Set this to cause the learning rate to decay).",
        "D", 0,"-D"));
   
   
View Full Code Here

   * @return an enumeration of all the available options.
   */
  public Enumeration listOptions() {
   
    Vector newVector = new Vector(4);
    newVector.addElement(new Option("\tProduce debugging output.\n"
            + "\t(default no debugging output)",
            "D", 0, "-D"));
    newVector.addElement(new Option("\tSet the attribute selection method"
            + " to use. 1 = None, 2 = Greedy.\n"
            + "\t(default 0 = M5' method)",
            "S", 1, "-S <number of selection method>"));
    newVector.addElement(new Option("\tDo not try to eliminate colinear"
            + " attributes.\n",
            "C", 0, "-C"));
    newVector.addElement(new Option("\tSet ridge parameter (default 1.0e-8).\n",
            "R", 1, "-R <double>"));
    return newVector.elements();
  }
View Full Code Here

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

    result.addElement(new Option(
  "\tThe size of the cache (a prime number), 0 for full cache and \n"
  + "\t-1 to turn it off.\n"
  + "\t(default: 250007)",
  "C", 1, "-C <num>"));
View Full Code Here

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

    result.addElement(new Option(
  "\tEnables debugging output (if available) to be printed.\n"
  + "\t(default: off)",
  "D", 0, "-D"));

    result.addElement(new Option(
  "\tTurns off all checks - use with caution!\n"
  + "\t(default: checks on)",
  "no-checks", 0, "-no-checks"));

    return result.elements();
View Full Code Here

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

    result.addElement(new Option(
  "\tThe Gamma parameter.\n"
  + "\t(default: 0.01)",
  "G", 1, "-G <num>"));

    return result.elements();
View Full Code Here

   */
  public Enumeration<Option> listOptions() {

    Vector<Option> newVector = new Vector<Option>(11);

    newVector.addElement(new Option("\tSpecifies name of directory.", "l",
        1, "-l <directory name>"));
    newVector.addElement(new Option("\tSpecifies name of model.", "m", 1,
        "-m <model name>"));
    newVector.addElement(new Option("\tSpecifies vocabulary name.", "v", 1,
        "-v <vocabulary name>"));
    newVector.addElement(new Option(
        "\tSpecifies vocabulary format (text or skos or none).", "f",
        1, "-f <vocabulary format>"));
    newVector.addElement(new Option(
        "\tSpecifies document language (en (default), es, de, fr).",
        "i", 1, "-i <document language>"));
    newVector.addElement(new Option("\tSpecifies encoding.", "e", 1,
        "-e <encoding>"));
    newVector.addElement(new Option("\tTurns debugging mode on.", "d", 0,
        "-d"));
    newVector.addElement(new Option(
        "\tSets the maximum phrase length (default: 5).", "x", 1,
        "-x <length>"));
    newVector.addElement(new Option(
        "\tSets the minimum phrase length (default: 1).", "y", 1,
        "-y <length>"));
    newVector.addElement(new Option(
        "\tSet the minimum number of occurences (default: 2).", "o", 1,
        "-o"));
    newVector
        .addElement(new Option(
            "\tSets the list of stopwords to use (default: StopwordsEnglish).",
            "s", 1, "-s <name of stopwords class>"));
    newVector.addElement(new Option(
        "\tSet the stemmer to use (default: SremovalStemmer).", "t", 1,
        "-t <name of stemmer class>"));

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

      e.printStackTrace();
      System.err.println(e.getMessage());
      System.err.println("\nOptions:\n");
      Enumeration<Option> en = modelBuilder.listOptions();
      while (en.hasMoreElements()) {
        Option option = (Option) en.nextElement();
        System.err.println(option.synopsis());
        System.err.println(option.description());
      }
    }
  }
View Full Code Here

   * @return an enumeration of all available options.
   */
  public Enumeration listOptions(){

    Vector newVector = new Vector(1);
    newVector.addElement(new Option("\tSet sample size\n"
            + "\t(default: 4)\n",
            "S", 4, "-S <sample size>"));
    newVector.addElement(new Option("\tSet the seed used to generate samples\n"
            + "\t(default: 0)\n",
            "G", 0, "-G <seed>"));
    newVector.addElement(new Option("\tProduce debugging output\n"
            + "\t(default no debugging output)\n",
            "D", 0, "-D"));

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

   * @return an enumeration of all the available options.
   */
  public Enumeration listOptions() {
   
    Vector newVector = new Vector(2);
    newVector.addElement(new Option("\tProduce debugging output.\n"
            + "\t(default no debugging output)",
            "D", 0, "-D"));
    newVector.addElement(new Option("\tThe estimator can be one of the following:\n" +
            "\t\teb -- Empirical Bayes estimator for noraml mixture (default)\n" +
            "\t\tnested -- Optimal nested model selector for normal mixture\n" +
            "\t\tsubset -- Optimal subset selector for normal mixture\n" +
            "\t\tpace2 -- PACE2 for Chi-square mixture\n" +
            "\t\tpace4 -- PACE4 for Chi-square mixture\n" +
            "\t\tpace6 -- PACE6 for Chi-square mixture\n\n" +
            "\t\tols -- Ordinary least squares estimator\n"
            "\t\taic -- AIC estimator\n"
            "\t\tbic -- BIC estimator\n"
            "\t\tric -- RIC estimator\n"
            "\t\tolsc -- Ordinary least squares subset selector with a threshold",
            "E", 0, "-E <estimator>"));
    newVector.addElement(new Option("\tThreshold value for the OLSC estimator",
            "S", 0, "-S <threshold value>"));
    return newVector.elements();
  }
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.