本文整理汇总了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));
}
示例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());
}
}
示例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 ) );
}
示例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());
}
示例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());
}