def add_negative(self, k: int, category: str):
        """Log a negative hit @k for given category"""
        if k not in self.total_byk_bycat:
            raise RuntimeError(f"{k} is not a valid recall threshold")
        self.total_byk_bycat[k][category] += 1
Log a negative hit @k for given category
kosmos-2/evaluation/flickr_entities/flickr_entities_evaluate.py