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


Java BalancedWinnowTrainer类代码示例

本文整理汇总了Java中cc.mallet.classify.BalancedWinnowTrainer的典型用法代码示例。如果您正苦于以下问题:Java BalancedWinnowTrainer类的具体用法?Java BalancedWinnowTrainer怎么用?Java BalancedWinnowTrainer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: TokenClassifiers

import cc.mallet.classify.BalancedWinnowTrainer; //导入依赖的package包/类
public TokenClassifiers(InstanceList trainList, int randSeed, int numCV)
		{
//			this(new AdaBoostM2Trainer(new DecisionTreeTrainer(2), 10), trainList, randSeed, numCV);
//			this(new NaiveBayesTrainer(), trainList, randSeed, numCV);
			this(new BalancedWinnowTrainer(), trainList, randSeed, numCV);
//			this(new SVMTrainer(), trainList, randSeed, numCV);
		}
 
开发者ID:kostagiolasn,项目名称:NucleosomePatternClassifier,代码行数:8,代码来源:AddClassifierTokenPredictions.java

示例2: reset

import cc.mallet.classify.BalancedWinnowTrainer; //导入依赖的package包/类
public void reset() {
	switch (type) {
	case NaiveBayes:
		this.trainer = new NaiveBayesTrainer();
		this.classifier = null;
		break;
	case AdaBoost:
		this.trainer = new AdaBoostTrainer(new DecisionTreeTrainer());
		this.classifier = null;
		break;
	case AdaBoostM2:
		this.trainer = new AdaBoostM2Trainer(new DecisionTreeTrainer());
		this.classifier = null;
		break;
	// case Bagging:
	// this.trainer = new BaggingTrainer(new DecisionTreeTrainer());
	// this.classifier = null;
	// break;
	case BalancedWinnow:
		this.trainer = new BalancedWinnowTrainer();
		this.classifier = null;
		break;
	// case ConfidencePredictingClassifier:
	// this.trainer = new ConfidencePredictingClassifierTrainer(new
	// DecisionTreeTrainer());
	// this.classifier = null;
	// break;
	case DecisionTree:
		this.trainer = new DecisionTreeTrainer();
		this.classifier = null;
		break;
	default:
		throw new RuntimeException("not implemented");
	}

}
 
开发者ID:jdmp,项目名称:java-data-mining-package,代码行数:37,代码来源:MalletClassifier.java


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