sandeep-krishnamurthy commented on a change in pull request #13471: 
Optimization of metric evaluation
URL: https://github.com/apache/incubator-mxnet/pull/13471#discussion_r239668177
 
 

 ##########
 File path: python/mxnet/metric.py
 ##########
 @@ -883,6 +983,17 @@ def get(self):
         """
         return (self.name, math.exp(self.sum_metric/self.num_inst))
 
+    def get_global(self):
+        """Returns the current global evaluation result.
+
+        Returns
+        -------
+        Tuple of (str, float)
+            Representing name of the metric and evaluation result.
+        """
+        num = self.global_num_inst if self.global_num_inst > 0 else 
float('nan')
 
 Review comment:
   return float('nan')?

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


With regards,
Apache Git Services

Reply via email to