weka.core.Option.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(11.7k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中weka.core.Option.<init>()方法的一些代码示例,展示了Option.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.<init>()方法的具体详情如下:
包路径:weka.core.Option
类名称:Option
方法名:<init>

Option.<init>介绍

[英]Creates new option with the given parameters.
[中]使用给定参数创建新选项。

代码示例

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options
 * 
 * @return an enumeration of all the available options
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(1);
 newVector.addElement(new Option("\tInitial count (alpha)\n", "A", 1,
  "-A <alpha>"));
 return newVector.elements();
} // listOptions

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe scaling factor for the output range.\n"
  + "\t(default: 1.0)", "S", 1, "-S <num>"));
 result.addElement(new Option("\tThe translation of the output range.\n"
  + "\t(default: 0.0)", "T", 1, "-T <num>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration of all the available options..
 * 
 * @return an enumeration of all available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe maximum number of characters (default = 3).",
  "max", 1, "-max <int>"));
 result.addElement(new Option("\tThe minimum number of characters (default = 1).",
  "min", 1, "-min <int>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>();
 newVector.addElement(new Option("\tNormalize dimensions' widths.", "N", 0,
  "-N"));
 return newVector.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Returns an enumeration describing the available options
 * 
 * @return an enumeration of all the available options
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tSet whether or not use empirical\n"
  + "\tlog-odds cut-off instead of 0", "C", 0, "-C"));
 result.addElement(new Option("\tSet the number of multiple runs \n"
  + "\tneeded for searching the MLE.", "R", 1, "-R <numOfRuns>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 **/
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(1);
 newVector.addElement(new Option("\ttreat missing values as a seperate "
  + "value.", "M", 0, "-M"));
 return newVector.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Returns an enumeration describing the available options
 * 
 * @return an enumeration of all the available options
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tSet whether or not use empirical\n"
  + "\tlog-odds cut-off instead of 0", "C", 0, "-C"));
 result.addElement(new Option("\tSet the number of multiple runs \n"
  + "\tneeded for searching the MLE.", "R", 1, "-R <numOfRuns>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/meka

@Override
public Enumeration listOptions() {
  Vector newVector = new Vector();
  newVector.addElement(new Option("\tSets the downsampling ratio\n\tdefault: "+m_DownSampleRatio+"\t(% of original)", "P", 1, "-P <value>"));
  newVector.addElement(new Option("\tThe seed value for randomization\n\tdefault: 0", "S", 1, "-S <value>"));
  Enumeration enu = super.listOptions();
  while (enu.hasMoreElements()) 
    newVector.addElement(enu.nextElement());
  return newVector.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe Exponent to use.\n"
  + "\t(default: 1.0)", "E", 1, "-E <num>"));
 result.addElement(new Option("\tUse lower-order terms.\n"
  + "\t(default: no)", "L", 0, "-L"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/meka

@Override
public Enumeration listOptions() {
  Vector newVector = new Vector();
  newVector.addElement(new Option("\tSets the pruning value        \n\tdefault: "+m_P+"\t(off)", "P", 1, "-P <value>"));
  newVector.addElement(new Option("\tSets the subsampling strategy \n\tdefault: "+m_N+"\t(off)\n\tn\tN = n\n\t-n\tN = n, or 0 if LCard(D) >= 2\n\tn-m\tN = random(n,m)", "N", 1, "-N <value>"));
  Enumeration enu = super.listOptions();
  while (enu.hasMoreElements()) 
    newVector.addElement(enu.nextElement());
  return newVector.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(4);
 newVector
  .addElement(new Option("\tNumber of runs", "U", 1, "-U <integer>"));
 newVector
  .addElement(new Option("\tRandom number seed", "A", 1, "-A <seed>"));
 newVector.addAll(Collections.list(super.listOptions()));
 return newVector.elements();
} // listOptions

代码示例来源:origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Returns an enumeration describing the available options
 * 
 * @return an enumeration of all the available options
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tTurn on debugging output.", "D", 0, "-D"));
 result.addElement(new Option(
  "\tWhether to 0=normalize/1=standardize/2=neither.\n"
   + "\t(default 1=standardize)", "N", 1, "-N <num>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/multiInstanceLearning

/**
 * Returns an enumeration describing the available options
 * 
 * @return an enumeration of all the available options
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe number of bins in discretization\n"
  + "\t(default 0, no discretization)", "B", 1, "-B <num>"));
 result.addElement(new Option("\tMaximum number of boost iterations.\n"
  + "\t(default 10)", "R", 1, "-R <num>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe Omega parameter.\n"
  + "\t(default: 1.0)", "O", 1, "-O <num>"));
 result.addElement(new Option("\tThe Sigma parameter.\n"
  + "\t(default: 1.0)", "S", 1, "-S <num>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration of all the available options..
 * 
 * @return an enumeration of all available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe max size of the Ngram (default = 3).",
  "max", 1, "-max <int>"));
 result.addElement(new Option("\tThe min size of the Ngram (default = 1).",
  "min", 1, "-min <int>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(2);
 newVector
  .addElement(new Option("\tNumber of runs", "U", 1, "-U <integer>"));
 newVector
  .addElement(new Option("\tRandom number seed", "A", 1, "-A <seed>"));
 newVector.addAll(Collections.list(super.listOptions()));
 return newVector.elements();
} // listOptions

代码示例来源:origin: Waikato/weka-trunk

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(2);
 newVector
  .addElement(new Option("\tNumber of runs", "U", 1, "-U <integer>"));
 newVector
  .addElement(new Option("\tRandom number seed", "A", 1, "-A <seed>"));
 newVector.addAll(Collections.list(super.listOptions()));
 return newVector.elements();
} // listOptions

代码示例来源:origin: Waikato/weka-trunk

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tUse double precision format.\n"
  + "\t(default: single precision)", "double", 0, "-double"));
 result.addElement(new Option("\tUse tabs as separator.\n"
  + "\t(default: blanks)", "tabs", 0, "-tabs"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

代码示例来源:origin: Waikato/weka-trunk

/**
 * Returns an enumeration describing the available options.
 * 
 * @return an enumeration of all the available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> newVector = new Vector<Option>(2);
 newVector.addElement(new Option("\tLook Ahead Depth", "L", 2,
  "-L <nr of look ahead steps>"));
 newVector.addElement(new Option("\tNr of Good Operations", "G", 5,
  "-G <nr of good operations>"));
 newVector.addAll(Collections.list(super.listOptions()));
 return newVector.elements();
} // listOptions

代码示例来源:origin: Waikato/weka-trunk

/**
 * Returns an enumeration of all the available options..
 * 
 * @return an enumeration of all available options.
 */
@Override
public Enumeration<Option> listOptions() {
 Vector<Option> result = new Vector<Option>();
 result.addElement(new Option("\tThe maximum number of characters (default = 3).",
  "max", 1, "-max <int>"));
 result.addElement(new Option("\tThe minimum number of characters (default = 1).",
  "min", 1, "-min <int>"));
 result.addAll(Collections.list(super.listOptions()));
 return result.elements();
}

相关文章