摘要: 一、损失函数(loss) [前向传播的预测值y与已知答案y_的差距]: 1.优化目标:使loss达到最小值。 2.优化方法:均方误差(mse) 交叉熵(ce) 自定义 详解: 1.均方误差mse: 公式: 函数:loss_mse = tf.reduce_mean(tf.square(y_ - y)) 阅读全文
posted @ 2018-09-25 16:51 Z-LIANG 阅读(262) 评论(0) 推荐(1) 编辑