python - 损失函数的数学意义是什么?
问题描述
我是 tensorflow 的新手,我想了解以下示例的每个步骤:
c = tf.square(a - b)
MSE = tf.reduce_mean(c)
d = tf.reduce_sum(tf.square(a-b),reduction_indices=[1])
e = tf.reduce_mean(d)
变量的值e
代表什么?我想知道数学表达式。
解决方案
这是平均值;即,给定值的总和除以值的数量。
tensorflow.math.reduce_mean
在功能上等同于numpy.mean
; 它取给定张量的平均值。
推荐阅读
- python - Einsum 将每一行与每一行相乘
- json - 如何在 mule 中从 JSON 中获取部分数据
- python - Python -IndentationError:意外取消缩进(制作 Reddit Bot)
- bash - 如何在脚本中使用 ssh-add 命令传递 ssh 密钥的密码?
- r - 面板数据:创建一个虚拟变量,用于识别另一个变量中具有特定行值的组。高效的方法
- mysql - 为什么 LOAD DATA INFILE MYSQL 很慢
- node.js - Mongodb $lookup 使用多个条件 mongodb
- docusignapi - Docusign 上线审核失败并显示消息:已进行至少 20 次成功的 API 调用
- angular - Angular bazel ts_devserver 添加 polyfill
- performance - 与每次需要时创建该类的新对象相比,创建 bean 是否会降低性能?