Same model has different results in python and java

keras model , saved in .h5 file ;
then read h5 file and import it in java

I found that most predicted values are smaller than the real ones;

The error is a little bit huge and I want to fix it. Thanks in advance!

I solved this question by using new keras version.
in DL4J , more parameters should be fixed, results are good enough then.

@Dominic97 did you use keras 1? We have a ton of regression tests to prevent these kinds of issues. If you have anything in particular we should be testing for, please let me know.