本文整理汇总了Java中weka.classifiers.meta.AdaBoostM1类的典型用法代码示例。如果您正苦于以下问题:Java AdaBoostM1类的具体用法?Java AdaBoostM1怎么用?Java AdaBoostM1使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdaBoostM1类属于weka.classifiers.meta包,在下文中一共展示了AdaBoostM1类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getClassifierClassName
import weka.classifiers.meta.AdaBoostM1; //导入依赖的package包/类
/**
* Get classifier's class name by a short name
* */
public static String getClassifierClassName(String classifierName) {
String className = "";
switch (classifierName) {
case "SGD":
className = SGD.class.toString();
break;
case "SGDText":
className = SGDText.class.toString();
break;
case "J48":
className = J48.class.toString();
break;
case "PART":
className = PART.class.toString();
break;
case "NaiveBayes":
className = NaiveBayes.class.toString();
break;
case "NBUpdateable":
className = NaiveBayesUpdateable.class.toString();
break;
case "AdaBoostM1":
className = AdaBoostM1.class.toString();
break;
case "LogitBoost":
className = LogitBoost.class.toString();
break;
case "Bagging":
className = Bagging.class.toString();
break;
case "Stacking":
className = Stacking.class.toString();
break;
case "AdditiveRegression":
className = AdditiveRegression.class.toString();
break;
case "Apriori":
className = Apriori.class.toString();
break;
default:
className = SGD.class.toString();
}
className = className.substring(6);
return className;
}