networks.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:comprehend 作者: Fenugreek 项目源码 文件源码
def target_cost(self, inputs, targets, function=tf.squared_difference, **kwargs):
        """
        For mapping problems, r.m.s. difference between hidden values and targets.
        i.e. Cost for given input batch of samples, under current params.
        """
        hidden = self.get_hidden_values(inputs, **kwargs)
        return tf.reduce_mean(function(hidden, targets))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号