-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.lang.ArithmeticException: integer overflow ? #175
Comments
The JPMML-Evaluator library uses Java's 32-bit In your case, one of the inputs is a PMML double value, does not fit into Java's
The most likely explanation is that the 1.4.7 version simply didn't perform integer bounds checking (which lead to incorrect prediction). Closing this issue as a duplicate of #141 |
@OnlyFor In your code there's an expression Wouldn't it be possible (ie. functionally identical given the true nature of the |
But I am pretty sure the results of 1.4.7 is correct, and the reason of * & / 1000 is to keep 3 decimal after rounding, as same as round(x, 3) in other languages |
Perhaps the integer overflow happened with reason codes that did not emerge as the "winner" in the end. You could tweak the current Are you still seeing successful/correct predictions then?
The PMML standard only provides "fixed precision" round function. To emulate arbitrary precision rounding, then you could try using the Something like this: <DerivedField name="round(x, 3)" dataType="double">
<Apply function="formatNumber">
<FieldRef field="x"/>
<Constant dataType="string">0.000</Constant> <!-- check this pattern! -->
</Apply>
</DerivedField> |
thx ! i fix this problem by using something like: %.3f |
when i use 1.4.13 example,
java -cp pmml-evaluator-example-executable-1.4.13.jar org.jpmml.evaluator.EvaluationExample --model Model_test8-train-test2_score.xml --input input.csv --output output.csv --missing-values "" --separator ","
but everything just fine in 1.4.7 ?
files.zip
i use round in scorecard model
The text was updated successfully, but these errors were encountered: