【发布时间】:2018-10-16 09:47:44
【问题描述】:
我想用 tensorflow (tf.estimator.Estimator) 训练多标签分类模型。我需要在评估时输出准确性。但它似乎不适用于以下代码:
accuracy = tf.metrics.accuracy(labels=labels, predictions=preds)
metrics = {'accuracy': accuracy}
if mode == tf.estimator.ModeKeys.EVAL:
return tf.estimator.EstimatorSpec(mode, loss=loss, eval_metric_ops=metrics)
tf.metrics.accuracy 不适用于 multihot 结果。那么什么是多标签指标?
【问题讨论】:
标签: tensorflow evaluation tensorflow-estimator