Edit: metrics_core.py