You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Predictions and split values outputted in JSON from PrintMojo are java Floats. However, JSON doesn't preserve type information and without paying extra attention to the issue the parser might interpret the values as Doubles. This would lead in a difference in the prediction based on the json interpreted code and POJO/MOJO/H2O.
To mitigate that we should add an option (--floattodouble) to output Doubles instead of Floats and thus prevent possible parsing issues.
Jira Issue: PUBDEV-8189
Assignee: Michal Kurka
Reporter: Michal Kurka
State: Resolved
Fix Version: 3.34.0.1
Attachments: N/A
Development PRs: Available
Predictions and split values outputted in JSON from PrintMojo are java Floats. However, JSON doesn't preserve type information and without paying extra attention to the issue the parser might interpret the values as Doubles. This would lead in a difference in the prediction based on the json interpreted code and POJO/MOJO/H2O.
To mitigate that we should add an option (--floattodouble) to output Doubles instead of Floats and thus prevent possible parsing issues.
example:
java -cp genmodel.jar hex.genmodel.tools.PrintMojo -i gbm.mojo -o gbm.json --format json --floattodouble
The text was updated successfully, but these errors were encountered: