MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / __init__

Method __init__

experiments/accuracy.py:4–6  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2
3class Accuracy:
4 def __init__(self):
5 self._num_correct = 0
6 self._num_total = 0
7
8 def update(self, predicted: str, target: str) -> None:
9 is_correct = target in predicted

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected