utils.py 文件源码

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

项目:srcnn-tensorflow 作者: tjvandal 项目源码 文件源码
def nanvar(x, axis=None):
    x_filled = fill_na(x, 0)
    x_count = tf.reduce_sum(tf.cast(tf.is_finite(x), tf.float32), axis=axis)
    x_mean = nanmean(x, axis=axis)
    x_ss = tf.reduce_sum((x_filled - x_mean)**2, axis=axis)
    return x_ss / x_count
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号