Modify metric.py
Merge pull request #522 from dongweiming/modify_metric

Modify metric.py