0
$\begingroup$

I have trained a Keras classification model with TensorFlow. Every time when I run the model.predict(data) on the same input data I get different results. The interesting thing is, for example, if I run 10 predicts on the same data, the average does give the correct classification. Is this normal behavior or have I done something horribly wrong?

$\endgroup$
2
  • 1
    $\begingroup$ This doesn't seem like correct behaviour, can you maybe share the code you are running multiple times? $\endgroup$
    – Oxbowerce
    Jun 22, 2021 at 15:48
  • $\begingroup$ Can you check whether there is a shuffle statement in your data? If that exists turn that off. $\endgroup$
    – RAS
    Jul 21, 2021 at 22:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy