首页 > 解决方案 > 损失函数的数学意义是什么?

问题描述

我是 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代表什么?我想知道数学表达式。

标签: pythontensorflow

解决方案


这是平均值;即,给定值的总和除以值的数量。

tensorflow.math.reduce_mean在功能上等同于numpy.mean; 它取给定张量的平均值。


推荐阅读