What is the difference between Keras model.evaluate() and model.predict()?

前端 未结 4 1004
暗喜
暗喜 2020-12-29 04:48

I used Keras biomedical image segmentation to segment brain neurons. I used model.evaluate() it gave me Dice coefficient: 0.916. However, when I used mode

4条回答
  •  渐次进展
    2020-12-29 05:03

    It is about regularization. model.predict() returns the final output of the model, i.e. answer. While model.evaluate() returns the loss. The loss is used to train the model (via backpropagation) and it is not the answer.

    This video of ML Tokyo should help to understand the difference between model.evaluate() and model.predict().

提交回复
热议问题