diff --git a/model_zoo/bert/evaluation.py b/model_zoo/bert/evaluation.py index c58bf836fdf..320c99cc59a 100644 --- a/model_zoo/bert/evaluation.py +++ b/model_zoo/bert/evaluation.py @@ -141,7 +141,7 @@ def test_eval(): if cfg.task == "NER": print("Precision {:.6f} ".format(callback.TP / (callback.TP + callback.FP))) print("Recall {:.6f} ".format(callback.TP / (callback.TP + callback.FN))) - print("F1 {:.6f} ".format(2*callback.TP / (2*callback.TP + callback.FP + callback.FP))) + print("F1 {:.6f} ".format(2*callback.TP / (2*callback.TP + callback.FP + callback.FN))) else: print("acc_num {} , total_num {}, accuracy {:.6f}".format(callback.acc_num, callback.total_num, callback.acc_num / callback.total_num)) diff --git a/tests/st/networks/models/bert/bert_tdt_lossscale.py b/tests/st/networks/models/bert/test_bert_tdt_lossscale.py similarity index 100% rename from tests/st/networks/models/bert/bert_tdt_lossscale.py rename to tests/st/networks/models/bert/test_bert_tdt_lossscale.py