| commit | 78fa06c0079dbb1478755bc0ce878eac80ca3f77 | [log] [tgz] |
|---|---|---|
| author | Eric Junyuan Xie <piiswrong@users.noreply.github.com> | Thu Apr 20 21:35:12 2017 -0700 |
| committer | GitHub <noreply@github.com> | Thu Apr 20 21:35:12 2017 -0700 |
| tree | 72b40e48750aa37815cd21969fddde1c3038d5a3 | |
| parent | 439c6147fbdbae0eb06ba6b8f23ce492f8b05655 [diff] |
Update metric.py
diff --git a/python/mxnet/metric.py b/python/mxnet/metric.py index c427fc2..2870fab 100644 --- a/python/mxnet/metric.py +++ b/python/mxnet/metric.py
@@ -263,7 +263,7 @@ num += pred.size self.sum_metric += loss self.num_inst += num - + def get(self): return (self.name, math.exp(self.sum_metric/self.num_inst))