def get_smoothed_values(name: str) -> Dict[str, float]:
    """Get smoothed values aggregated under a given *name*.

    Raises:
        KeyError: if no metrics have been logged under *name*.
    """
    return _aggregators[name].get_smoothed_values()
Get smoothed values aggregated under a given *name*.

Raises:
KeyError: if no metrics have been logged under *name*.
fairseq/logging/metrics.py