如何在tensorflow中累积汇总统计信息 [英] How to accumulate summary statistics in tensorflow

查看:40
本文介绍了如何在tensorflow中累积汇总统计信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在每批次 tensorflow 中收集一组汇总统计数据.

I'm collecting a set of summary statistics in tensorflow per batch.

我想收集在测试集上计算的相同汇总统计信息,但测试集太大而无法一次性处理.

I want to collect the same summary statistics computed over a test set, but the test set is too large to process in one batch.

有没有一种方便的方法可以让我在遍历测试集时计算相同的汇总统计数据?

Is there a convenient way for me to compute the same summary statistics as I iterate through the test set?

推荐答案

好像是最近添加的.我在 contrib(以及后来的主线代码)、流式指标评估中发现了这一点.

Looks like it was added recently. I found just this in contrib (and later mainline code), streaming metric evaluation.

Keras 版本 (TF 2.0+):https://www.tensorflow.org/api_docs/python/tf/keras/metrics

Keras version (TF 2.0+): https://www.tensorflow.org/api_docs/python/tf/keras/metrics

TF 1.x 版本:https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/metrics

(根据评论更新链接)

这篇关于如何在tensorflow中累积汇总统计信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆