摘要: TensorFlow2.0入门学习笔记(7)——损失函数 损失函数(loss): 预测值(y)与已知答案(y_)的差距 神经网络的优化目标:loss最小 \(\Rightarrow \left\{\begin{array}{lr}mse(Mean Aquared Error) \\自定义 \\ce( 阅读全文
posted @ 2020-05-20 09:48 Moonx5 阅读(318) 评论(0) 推荐(0) 编辑
摘要: TensorFlow2.0入门学习笔记(6)——激活函数 常见函数 tf.where(条件语句,真返回A,假返回B) import tensorflow as tf a = tf.constant([1, 2, 3, 1, 1]) b = tf.constant([0, 1, 3, 4, 5]) # 阅读全文
posted @ 2020-05-20 09:47 Moonx5 阅读(344) 评论(0) 推荐(0) 编辑