| 1 | from abc import abstractmethod |
| 2 | |
| 3 | class ScoreNormalizer: |
| 4 | _name = None |
| 5 | |
| 6 | @abstractmethod |
| 7 | def __call__(self, score: float) -> float: ... |
| 8 | |
| 9 | def __repr__(self): |
| 10 | return f"{self.__class__.__name__}({self.__dict__})" |
| 11 | |
| 12 | def get_name(self) -> str | None: |
| 13 | return self._name |
| 14 | |
| 15 | |
| 16 | class ZScoreNormalizer(ScoreNormalizer): |
nothing calls this directly
no outgoing calls
no test coverage detected