如果y是one-hot encoding格式,使用sparse_categorical_crossentropy
[1,0,0]
[0,1,0]
[0,0,1]
如果y是整数,非one-hot encoding格式,使用categorical_crossentropy
1
2
3
如果y是one-hot encoding格式,使用sparse_categorical_crossentropy
[1,0,0]
[0,1,0]
[0,0,1]
如果y是整数,非one-hot encoding格式,使用categorical_crossentropy
1
2
3
上一篇:将进程绑定在CPU上运行
下一篇:RNN神经网络层的输出格式和形状
文章目录maxsoftmaxsoftmax的作用softmax的实现以及数值稳定性softmax与CrossEntropyCrossEntropy参考
This is an introduction to pandas categorical data type, includi...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M