You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/06/01 21:16:57 UTC

[GitHub] [incubator-mxnet] szha commented on a change in pull request #15106: NER example: fix metrics computation

szha commented on a change in pull request #15106: NER example: fix metrics computation
URL: https://github.com/apache/incubator-mxnet/pull/15106#discussion_r289618600
 
 

 ##########
 File path: example/named_entity_recognition/src/metrics.py
 ##########
 @@ -64,6 +65,8 @@ def classifer_metrics(label, pred):
         f1 = 0
     else:
         f1 = 2 * precision * recall / (precision + recall)
+
+    logging.log(logging.DEBUG, "Metrics results: precision=%f recall=%f f1=%f" % (precision, recall, f1))
 
 Review comment:
   ```suggestion
       logging.debug("Metrics results: precision=%f recall=%f f1=%f", precision, recall, f1)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services