提交 c28507e5 编写于 作者: B breezedeus

also output acc ratio

上级 0846f6ba
......@@ -150,8 +150,13 @@ def evaluate():
f.write('\t'.join([word, str(num)]) + '\n')
logger.info(
"number of total cases: %d, time cost per image: %f, number of bad cases: %d"
% (len(fn_labels_list), model_time_cost / len(fn_labels_list), bad_cnt)
"number of total cases: %d, number of bad cases: %d, acc: %.4f, time cost per image: %f"
% (
len(fn_labels_list),
bad_cnt,
bad_cnt / len(fn_labels_list),
model_time_cost / len(fn_labels_list),
)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册