Java Code Examples for org.dmg.pmml.ScoreDistribution#getValue()

The following examples show how to use org.dmg.pmml.ScoreDistribution#getValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TargetCategoryParser.java    From jpmml-evaluator with GNU Affero General Public License v3.0 5 votes vote down vote up
@Override
public VisitorAction visit(ScoreDistribution scoreDistribution){
	Object value = scoreDistribution.getValue();
	if(value == null){
		throw new MissingAttributeException(scoreDistribution, PMMLAttributes.SCOREDISTRIBUTION_VALUE);
	}

	scoreDistribution.setValue(parseTargetValue(value));

	return super.visit(scoreDistribution);
}
 
Example 2
Source File: ScoreDistributionInterner.java    From jpmml-evaluator with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public ElementKey createKey(ScoreDistribution scoreDistribution){
	Object[] content = {scoreDistribution.getValue(), scoreDistribution.getRecordCount(), scoreDistribution.getProbability(), scoreDistribution.getConfidence()};

	return new ElementKey(content);
}