本文整理匯總了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 "?";
}
}
示例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 "?";
}
}