当前位置: 首页>>代码示例>>Java>>正文


Java Option.setOptionsForHierarchy方法代码示例

本文整理汇总了Java中weka.core.Option.setOptionsForHierarchy方法的典型用法代码示例。如果您正苦于以下问题:Java Option.setOptionsForHierarchy方法的具体用法?Java Option.setOptionsForHierarchy怎么用?Java Option.setOptionsForHierarchy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在weka.core.Option的用法示例。


在下文中一共展示了Option.setOptionsForHierarchy方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setOptions

import weka.core.Option; //导入方法依赖的package包/类
/**
 * Parses a given list of options. Valid options are:
 * <p>
 * 
 * -D <br>
 * If set, clusterer is run in debug mode and may output additional info to
 * the console.
 * <p>
 * 
 * -do-not-check-capabilities <br>
 * If set, clusterer capabilities are not checked before clusterer is built
 * (use with caution).
 * <p>
 * 
 * @param options the list of options as an array of strings
 * @exception Exception if an option is not supported
 */
@Override
public void setOptions(String[] options) throws Exception {

  Option.setOptionsForHierarchy(options, this, AbstractClusterer.class);
  setDebug(Utils.getFlag("output-debug-info", options));
  setDoNotCheckCapabilities(Utils.getFlag("do-not-check-capabilities",
    options));
}
 
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:26,代码来源:AbstractClusterer.java

示例2: setOptions

import weka.core.Option; //导入方法依赖的package包/类
/**
 * Parses a given list of options. Valid options are:
 * <p>
 *
 * -D <br>
 * If set, classifier is run in debug mode and may output additional info to
 * the console.
 * <p>
 *
 * -do-not-check-capabilities <br>
 * If set, classifier capabilities are not checked before classifier is built
 * (use with caution).
 * <p>
 *
 * @param options the list of options as an array of strings
 * @exception Exception if an option is not supported
 */
@Override
public void setOptions(String[] options) throws Exception {

  Option.setOptionsForHierarchy(options, this, AbstractClassifier.class);
  setDebug(Utils.getFlag("output-debug-info", options));
  setDoNotCheckCapabilities(Utils.getFlag("do-not-check-capabilities",
    options));

  String optionString = Utils.getOption("num-decimal-places", options);
  if (optionString.length() != 0) {
    setNumDecimalPlaces((new Integer(optionString)).intValue());
  }
}
 
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:31,代码来源:AbstractClassifier.java

示例3: setOptions

import weka.core.Option; //导入方法依赖的package包/类
/**
 * Parses a given list of options. Valid options are:
 * <p>
 *
 * -D <br>
 * If set, filter is run in debug mode and may output additional info to
 * the console.
 * <p>
 *
 * -do-not-check-capabilities <br>
 * If set, filter capabilities are not checked before filter is built
 * (use with caution).
 * <p>
 *
 * @param options the list of options as an array of strings
 * @exception Exception if an option is not supported
 */
@Override
public void setOptions(String[] options) throws Exception {

  Option.setOptionsForHierarchy(options, this, Filter.class);
  setDebug(Utils.getFlag("output-debug-info", options));
  setDoNotCheckCapabilities( Utils.getFlag( "do-not-check-capabilities", options ) );
}
 
开发者ID:mydzigear,项目名称:repo.kmeanspp.silhouette_score,代码行数:25,代码来源:Filter.java

示例4: setOptions

import weka.core.Option; //导入方法依赖的package包/类
/**
 * Parses the options for this object.
 *  
 * @param options
 *            the options to use
 * @throws Exception
 *             if setting of options fails
 */
@Override
public void setOptions(String[] options) throws Exception {
	Option.setOptionsForHierarchy(options, this, this.getClass().getSuperclass());
}
 
开发者ID:felipebravom,项目名称:AffectiveTweets,代码行数:13,代码来源:TweetToFeatureVector.java

示例5: setOptions

import weka.core.Option; //导入方法依赖的package包/类
/**
 * Parses the options for this object.
 *
 * @param options the options to use
 * @throws Exception if setting of options fails
 */
@Override
public void setOptions(String[] options) throws Exception {
  Option.setOptionsForHierarchy(options, this, this.getClass().getSuperclass());
  // Option.setOptions(options, this, this.getClass());
}
 
开发者ID:Waikato,项目名称:wekaDeeplearning4j,代码行数:12,代码来源:Dl4jStringToGlove.java


注:本文中的weka.core.Option.setOptionsForHierarchy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。