Hvass-Labs / TensorFlow-Tutorials

TensorFlow Tutorials with YouTube Videos

Repository from Github https://github.comHvass-Labs/TensorFlow-TutorialsRepository from Github https://github.comHvass-Labs/TensorFlow-Tutorials

model.prediction does not match model.evaluation loss error

Manal4 opened this issue · comments

Hi
Thanks for the tutorial.
I applied the same code using different data, it worked perfectly, I added the mes, mae metrics in addition to the loss fuction, but when I tried to calculate the individual MSEs, it seems that the error from model.prediction() does not match the error from the model.evaluation().
I just add this line in the comparison function:

                             `  mean_squared_error(signal_true,signal_pred) `

I also divide it by 1000 but the total of mean squared errors from different signals does not match the mse from the model.evaluation().
thanks.

I saw @bstriner reply #keras-team/keras#5140 (comment) regarding a similar issue in #keras-team/keras#5140, but I couldn't fix it, it seems to me that shapes/data types are correct.

I don't know what you are referring to, but I have just updated many of the tutorials to support TensorFlow 2, so you can try again with the new version.