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

Method __len__

src/evaluate/module.py:253–257  ·  view source on GitHub ↗

Return the number of examples (predictions or predictions/references pair) currently stored in the evaluation module's cache.

(self)

Source from the content-addressed store, hash-verified

251 self._hash = hash
252
253 def __len__(self):
254 """Return the number of examples (predictions or predictions/references pair)
255 currently stored in the evaluation module's cache.
256 """
257 return 0 if self.writer is None else len(self.writer)
258
259 def __repr__(self):
260 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected