【问题标题】:How to parse the tensorflow events file?如何解析张量流事件文件?
【发布时间】:2019-09-05 21:48:51
【问题描述】:

我想知道如何从模型输出的events 文件中提取与Tensorboard 相同的性能结果:特别是Precision、Recall 和Loss 数字是最受关注的。在给定模型检查点目录的情况下,这是在Tensorboard 上显示的其中一部分:

我不确定这些模型是否有自记录信息或其他元数据。这个特别是Faster RNN Inception:但是这些输出是与特定模型相关联的还是它们在格式上是通用的?

【问题讨论】:

    标签: tensorflow tensorboard


    【解决方案1】:

    tensorboard 包中找到了方法:

      from tensorboard.backend.event_processing.event_accumulator import EventAccumulator
      event_acc = EventAccumulator(evtf)
      event_acc.Reload()
    

    其中一项是:

      scal_losses = event_acc.Scalars('Loss/total_loss')
    

    从该列表中,我们可以提取诸如Step [number] 和Value 等属性(loss):

     losses = sorted([[sevt.step, sevt.value] for sevt in scal_losses])
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-08
      • 1970-01-01
      • 2016-07-25
      • 1970-01-01
      • 2011-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多