我一直在玩SyntaxNet。每次运行后,都会打印出这样的一行:
INFO:tensorflow:Seconds elapsed in evaluation: 20.65, eval metric: 11.48%
我已将其追溯到line 134 of parser_eval.py:
tf_eval_epochs, tf_eval_metrics, tf_documents = sess.run([
parser.evaluation['epochs'],
parser.evaluation['eval_metrics'],
parser.evaluation['documents'],
])
num_tokens += tf_eval_metrics[0]
num_correct += tf_eval_metrics[1]
(...)
eval_metric = 100.0 * num_correct / num_tokens
(...)
logging.info('Seconds elapsed in evaluation: %.2f, '
'eval metric: %.2f%%', time.time() - t, eval_metric)
它似乎是衡量准确度的标准,但它是如何计算的,它是什么意思?