Using binary_crossentropy loss in Keras (Tensorflow backend)

后端 未结 3 1341
死守一世寂寞
死守一世寂寞 2021-01-02 11:26

In the training example in Keras documentation,

https://keras.io/getting-started/sequential-model-guide/#training

binary_crossentropy is use

3条回答
  •  迷失自我
    2021-01-02 12:01

    In categorical cross entropy :

    • if it is prediction it will compute the cross entropy directly
    • if it is logit it will apply softmax_cross entropy with logit

    In Binary cross entropy:

    • if it is prediction it will convert it back to logit then apply sigmoied cross entropy with logit
    • if it is logit it will apply sigmoied cross entropy with logitdirectly

提交回复
热议问题