    def get_metric(self, reset: bool = False) -> float:
        """
        # Returns

        The accumulated covariance.
        """
        if is_distributed():
            raise RuntimeError("Distributed aggregation for Covariance is currently not supported.")
        covariance = self._total_co_moment / (self._total_count - 1)
        if reset:
            self.reset()
        return covariance
# Returns

The accumulated covariance.
allennlp/training/metrics/covariance.py