本文整理汇总了Java中weka.classifiers.trees.HoeffdingTree类的典型用法代码示例。如果您正苦于以下问题:Java HoeffdingTree类的具体用法?Java HoeffdingTree怎么用?Java HoeffdingTree使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HoeffdingTree类属于weka.classifiers.trees包,在下文中一共展示了HoeffdingTree类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: makeOnlineClassifier
import weka.classifiers.trees.HoeffdingTree; //导入依赖的package包/类
public static Classifier makeOnlineClassifier(String wekaClassifier, String[] options) throws Exception {
switch (WekaOnlineClassificationAlgorithms.valueOf(wekaClassifier)) {
case naiveBayes:
NaiveBayesUpdateable naiveBayesUpdateable = new NaiveBayesUpdateable();
setOptionsForWekaPredictor(options, naiveBayesUpdateable);
return naiveBayesUpdateable;
case locallyWeightedLearner:
LWL lwl = new LWL();
setOptionsForWekaPredictor(options, lwl);
return lwl;
case nearestNeighbors:
IBk ibk = new IBk();
setOptionsForWekaPredictor(options, ibk);
return ibk;
case onlineDecisionTree:
HoeffdingTree tree = new HoeffdingTree();
setOptionsForWekaPredictor(options, tree);
return tree;
case stochasticGradientDescent:
SGD sgd = new SGD();
setOptionsForWekaPredictor(options, sgd);
return sgd;
default:
return new NaiveBayesUpdateable();
}
}
示例2: RTUpdateable
import weka.classifiers.trees.HoeffdingTree; //导入依赖的package包/类
public RTUpdateable() {
// default classifier for GUI
this.m_Classifier = new HoeffdingTree();
}
示例3: CCUpdateable
import weka.classifiers.trees.HoeffdingTree; //导入依赖的package包/类
public CCUpdateable() {
// default classifier for GUI
this.m_Classifier = new HoeffdingTree();
}
示例4: BRUpdateable
import weka.classifiers.trees.HoeffdingTree; //导入依赖的package包/类
public BRUpdateable() {
// default classifier for GUI
this.m_Classifier = new HoeffdingTree();
}
示例5: PSUpdateable
import weka.classifiers.trees.HoeffdingTree; //导入依赖的package包/类
public PSUpdateable() {
// default classifier for GUI
this.m_Classifier = new HoeffdingTree();
}