本文整理了Java中weka.core.Utils.partitionOptions()
方法的一些代码示例,展示了Utils.partitionOptions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.partitionOptions()
方法的具体详情如下:
包路径:weka.core.Utils
类名称:Utils
方法名:partitionOptions
[英]Returns the secondary set of options (if any) contained in the supplied options array. The secondary set is defined to be any options after the first "--". These options are removed from the original options array.
[中]返回所提供的选项数组中包含的第二组选项(如果有)。辅助集定义为第一个“-”之后的任何选项。这些选项将从原始选项数组中删除。
代码示例来源:origin: com.github.fracpete/multisearch-weka-package
base = (Serializable) Utils.forName(Serializable.class, tmpStr, Utils.partitionOptions(options));
setBaseObject(base);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
Utils.partitionOptions(options)));
代码示例来源:origin: Waikato/weka-trunk
Utils.partitionOptions(options)));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
tmpStr = weka.classifiers.rules.ZeroR.class.getName();
setUserOptions(Utils.partitionOptions(options));
setOptionHandler((OptionHandler) Utils.forName(OptionHandler.class, tmpStr,
null));
代码示例来源:origin: Waikato/weka-trunk
tmpStr = weka.classifiers.rules.ZeroR.class.getName();
setUserOptions(Utils.partitionOptions(options));
setOptionHandler((OptionHandler) Utils.forName(OptionHandler.class, tmpStr,
null));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
Utils.partitionOptions(options)));
代码示例来源:origin: Waikato/weka-trunk
Utils.partitionOptions(options)));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* Parses a given list of options.
*
* @param options the list of options as an array of strings
* @throws Exception if an option is not supported
*/
@Override
public void setOptions(String[] options) throws Exception {
String tmpStr;
tmpStr = Utils.getOption('W', options);
super.setOptions(options);
if (tmpStr.length() > 0) {
setClusterer(AbstractClusterer.forName(tmpStr, null));
setClusterer(AbstractClusterer.forName(tmpStr,
Utils.partitionOptions(options)));
} else {
setClusterer(AbstractClusterer.forName(defaultClustererString(), null));
setClusterer(AbstractClusterer.forName(defaultClustererString(),
Utils.partitionOptions(options)));
}
}
代码示例来源:origin: Waikato/weka-trunk
/**
* Parses a given list of options.
*
* @param options the list of options as an array of strings
* @throws Exception if an option is not supported
*/
@Override
public void setOptions(String[] options) throws Exception {
String tmpStr;
tmpStr = Utils.getOption('W', options);
super.setOptions(options);
if (tmpStr.length() > 0) {
setClusterer(AbstractClusterer.forName(tmpStr, null));
setClusterer(AbstractClusterer.forName(tmpStr,
Utils.partitionOptions(options)));
} else {
setClusterer(AbstractClusterer.forName(defaultClustererString(), null));
setClusterer(AbstractClusterer.forName(defaultClustererString(),
Utils.partitionOptions(options)));
}
}
代码示例来源:origin: Waikato/weka-trunk
if (getClusterer() instanceof OptionHandler) {
((OptionHandler) getClusterer()).setOptions(Utils
.partitionOptions(options));
updateOptions();
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
if (getClusterer() instanceof OptionHandler) {
((OptionHandler) getClusterer()).setOptions(Utils
.partitionOptions(options));
updateOptions();
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
Utils.partitionOptions(options)));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
Utils.partitionOptions(options)));
} else {
Utils.partitionOptions(options)));
代码示例来源:origin: Waikato/weka-trunk
Utils.partitionOptions(options)));
} else {
Utils.partitionOptions(options)));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
throw new Exception("A estimator must be specified with the -W option.");
setEstimator(Estimator.forName(tmpStr, Utils.partitionOptions(options)));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
if (getClassifier() instanceof OptionHandler) {
((OptionHandler) getClassifier()).setOptions(Utils
.partitionOptions(options));
updateOptions();
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
/**
* Parses a given list of options. Valid options are:<p>
*
* -W classname <br>
* Specify the full class name of the base learner.<p>
*
* Options after -- are passed to the designated classifier.<p>
*
* @param options the list of options as an array of strings
* @exception Exception if an option is not supported
*/
public void setOptions(String[] options) throws Exception {
super.setOptions(options);
String classifierName = Utils.getOption('W', options);
if (classifierName.length() > 0) {
setClassifier(AbstractClassifier.forName(classifierName, null));
setClassifier(AbstractClassifier.forName(classifierName,
Utils.partitionOptions(options)));
} else {
setClassifier(AbstractClassifier.forName(defaultClassifierString(), null));
String[] classifierOptions = Utils.partitionOptions(options);
if (classifierOptions.length > 0) {
setClassifier(AbstractClassifier.forName(defaultClassifierString(),
classifierOptions));
} else {
setClassifier(AbstractClassifier.forName(defaultClassifierString(),
defaultClassifierOptions()));
}
}
}
代码示例来源:origin: Waikato/weka-trunk
/**
* Parses a given list of options. Valid options are:<p>
*
* -W classname <br>
* Specify the full class name of the base learner.<p>
*
* Options after -- are passed to the designated classifier.<p>
*
* @param options the list of options as an array of strings
* @exception Exception if an option is not supported
*/
public void setOptions(String[] options) throws Exception {
super.setOptions(options);
String classifierName = Utils.getOption('W', options);
if (classifierName.length() > 0) {
setClassifier(AbstractClassifier.forName(classifierName, null));
setClassifier(AbstractClassifier.forName(classifierName,
Utils.partitionOptions(options)));
} else {
setClassifier(AbstractClassifier.forName(defaultClassifierString(), null));
String[] classifierOptions = Utils.partitionOptions(options);
if (classifierOptions.length > 0) {
setClassifier(AbstractClassifier.forName(defaultClassifierString(),
classifierOptions));
} else {
setClassifier(AbstractClassifier.forName(defaultClassifierString(),
defaultClassifierOptions()));
}
}
}
代码示例来源:origin: nz.ac.waikato.cms.weka/distributedWekaBase
String[] classifierOpts = Utils.partitionOptions(options);
setClassifier(AbstractClassifier.forName(classifier, classifierOpts));
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
if (estimatorName.length() != 0) {
setEstimator((BayesNetEstimator) Utils.forName(BayesNetEstimator.class,
estimatorName, Utils.partitionOptions(options)));
} else {
setEstimator(new SimpleEstimator());
内容来源于网络,如有侵权,请联系作者删除!