【发布时间】:2018-01-02 13:33:26
【问题描述】:
我正在使用 tf 指标来计算精度和召回率,但总是得到 0.0,但是当我自己计算时,我得到了很好的精度,是 tensorflow 的错误还是我做错了什么。
with tf.name_scope("pointwise_accuracy"):
correct_predictions = tf.equal(self.predictions, tf.argmax(self.input_y, 1))
self.classification_accuracy = tf.reduce_mean(tf.cast(correct_predictions, "float"), name="accuracy")
self.precision = tf.metrics.precision(self.input_y, self.logits, name="precison")[0]
输出 精度 - 0.0
【问题讨论】:
标签: python tensorflow machine-learning evaluation