You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running run_beauty.sh,I got eval_result.txt.
The eval_result.txt only included masked_lm_accuracy and masked_lm_loss.
I tried and found that NDCG and other evaluation metrics only outputed in the info log.
Could you please tell me how can I get these evaluation metrics results and store them in the result txt file?
I found the source codes as followed:
` #tf.logging.info('special eval ops:', special_eval_ops)
result = estimator.evaluate(
input_fn=eval_input_fn,
steps=None,
hooks=[EvalHooks()])
output_eval_file = os.path.join(FLAGS.checkpointDir,
"eval_results.txt")
with tf.gfile.GFile(output_eval_file, "w") as writer:
tf.logging.info("***** Eval results *****")
tf.logging.info(bert_config.to_json_string())
writer.write(bert_config.to_json_string()+'\n')
for key in sorted(result.keys()):
tf.logging.info(" %s = %s", key, str(result[key]))
writer.write("%s = %s\n" % (key, str(result[key])))`
The text was updated successfully, but these errors were encountered:
After running run_beauty.sh,I got eval_result.txt.
The eval_result.txt only included masked_lm_accuracy and masked_lm_loss.
I tried and found that NDCG and other evaluation metrics only outputed in the info log.
Could you please tell me how can I get these evaluation metrics results and store them in the result txt file?
I found the source codes as followed:
` #tf.logging.info('special eval ops:', special_eval_ops)
result = estimator.evaluate(
input_fn=eval_input_fn,
steps=None,
hooks=[EvalHooks()])
The text was updated successfully, but these errors were encountered: