當前位置: 首頁>>代碼示例>>Java>>正文


Java Binomial類代碼示例

本文整理匯總了Java中com.rapidminer.operator.learner.subgroups.utility.Binomial的典型用法代碼示例。如果您正苦於以下問題:Java Binomial類的具體用法?Java Binomial怎麽用?Java Binomial使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Binomial類屬於com.rapidminer.operator.learner.subgroups.utility包,在下文中一共展示了Binomial類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getValueAt

import com.rapidminer.operator.learner.subgroups.utility.Binomial; //導入依賴的package包/類
public Object getValueAt(int rowIndex, int columnIndex) {
	Rule rule = rules.getRule(rowIndex);
	switch (columnIndex) {
	case COLUMN_PREMISES:
		return rule.getPremise().toString();
	case COLUMN_CONCLUSION:
		return rule.getConclusion().getValueAsString();
	case COLUMN_POSITIVE:
		return rule.getPositiveWeight();
	case COLUMN_NEGATIVE:
		return rule.getNegativeWeight();
	case COLUMN_SIZE:
		return rule.getCoveredWeight();
	case COLUMN_COVERAGE:
		return rule.getUtility(Coverage.class);
	case COLUMN_PRECISION:
		return rule.getUtility(Precision.class);
	case COLUMN_ACCURACY:
		return rule.getUtility(Accuracy.class);
	case COLUMN_BIAS:
		return rule.getUtility(Bias.class);
	case COLUMN_LIFT:
		return rule.getUtility(Lift.class);
	case COLUMN_BINOMIAL:
		return rule.getUtility(Binomial.class);
	case COLUMN_WRACC:
		return rule.getUtility(WRAcc.class);
	case COLUMN_SQUARED:
		return rule.getUtility(Squared.class);
	case COLUMN_ODDS:
		return rule.getUtility(Odds.class);
	case COLUMN_OR:
		return rule.getUtility(OddsRatio.class);
	case COLUMN_LENGTH:
		return rule.getHypothesis().getNumberOfLiterals();
	default:
		// cannot happen
		return "?";
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:41,代碼來源:RuleSetTableModel.java

示例2: getValueAt

import com.rapidminer.operator.learner.subgroups.utility.Binomial; //導入依賴的package包/類
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
	Rule rule = rules.getRule(rowIndex);
	switch (columnIndex) {
		case COLUMN_PREMISES:
			return rule.getPremise().toString();
		case COLUMN_CONCLUSION:
			return rule.getConclusion().getValueAsString();
		case COLUMN_POSITIVE:
			return rule.getPositiveWeight();
		case COLUMN_NEGATIVE:
			return rule.getNegativeWeight();
		case COLUMN_SIZE:
			return rule.getCoveredWeight();
		case COLUMN_COVERAGE:
			return rule.getUtility(Coverage.class);
		case COLUMN_PRECISION:
			return rule.getUtility(Precision.class);
		case COLUMN_ACCURACY:
			return rule.getUtility(Accuracy.class);
		case COLUMN_BIAS:
			return rule.getUtility(Bias.class);
		case COLUMN_LIFT:
			return rule.getUtility(Lift.class);
		case COLUMN_BINOMIAL:
			return rule.getUtility(Binomial.class);
		case COLUMN_WRACC:
			return rule.getUtility(WRAcc.class);
		case COLUMN_SQUARED:
			return rule.getUtility(Squared.class);
		case COLUMN_ODDS:
			return rule.getUtility(Odds.class);
		case COLUMN_OR:
			return rule.getUtility(OddsRatio.class);
		case COLUMN_LENGTH:
			return rule.getHypothesis().getNumberOfLiterals();
		default:
			// cannot happen
			return "?";
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:42,代碼來源:RuleSetTableModel.java


注:本文中的com.rapidminer.operator.learner.subgroups.utility.Binomial類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。