多分类交叉熵损失计算

loss = -[0* ln(0.05) + 1 * ln(0.95) + 0 * ln(0) + 0 * ln(0.1) + 0 *  ln(0.8) + 1* ln(0.1) ]    /   2   = 1.177

猜你喜欢

转载自blog.csdn.net/qq_39197555/article/details/114590478
今日推荐