MCPcopy Create free account
hub / github.com/huggingface/evaluate / _compute

Method _compute

src/evaluate/module.py:719–721  ·  view source on GitHub ↗

This method defines the common API for all the evaluation module in the library

(self, *, predictions=None, references=None, **kwargs)

Source from the content-addressed store, hash-verified

717 return None
718
719 def _compute(self, *, predictions=None, references=None, **kwargs) -> Dict[str, Any]:
720 """This method defines the common API for all the evaluation module in the library"""
721 raise NotImplementedError
722
723 def __del__(self):
724 if hasattr(self, "filelock") and self.filelock is not None:

Callers 1

computeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected