How to write a squared loss function for categorisation in Keras/Tensorflow?

后端 未结 0 1597
栀梦
栀梦 2021-02-04 17:36

I have one hot encoded data and I want a loss function that calculates (1 - predicted probability for the correct category) ^ 2 for each data point, my simple attempt was

相关标签:
回答
  • 消灭零回复
提交回复
热议问题