Java Code Examples for org.dmg.pmml.Apply#getFunction()
The following examples show how to use
org.dmg.pmml.Apply#getFunction() .
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: UnsupportedMarkupInspector.java From jpmml-evaluator with GNU Affero General Public License v3.0 | 6 votes |
@Override public VisitorAction visit(Apply apply){ String function = apply.getFunction(); switch(function){ case PMMLFunctions.ERF: case PMMLFunctions.NORMALCDF: case PMMLFunctions.NORMALIDF: case PMMLFunctions.NORMALPDF: case PMMLFunctions.STDNORMALCDF: case PMMLFunctions.STDNORMALIDF: case PMMLFunctions.STDNORMALPDF: report(new UnsupportedAttributeException(apply, PMMLAttributes.APPLY_FUNCTION, function)); break; default: break; } return super.visit(apply); }
Example 2
Source File: VersionInspector.java From jpmml-model with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public VisitorAction visit(Apply apply){ String function = apply.getFunction(); Version version = VersionInspector.functionVersions.get(function); if(version != null){ updateMinimum(version); } return super.visit(apply); }