Getting wrong prediction after loading a saved model
Finally, I got the answer. The model was saved and loaded correctly. The problem was that the x_test
which I was passing to the prediction with saving/loading and without saving/loading was different (I know, I am really sorry for this mistake). The x_test
w/o saving/loading the model had values +1 than the x_test
w/ saving/loading. This was suggested to me by a tensorflow
developer on github where I had opened up the issue.