Initialize the cosine basic backend.
(self, vectors: npt.NDArray, arguments: BasicArgs)
| 211 | |
| 212 | class CosineBasicBackend(BasicBackend): |
| 213 | def __init__(self, vectors: npt.NDArray, arguments: BasicArgs) -> None: |
| 214 | """Initialize the cosine basic backend.""" |
| 215 | super().__init__(vectors=vectors, arguments=arguments) |
| 216 | self._vectors = normalize_or_copy(self._vectors) |
| 217 | |
| 218 | def _dist(self, x: npt.NDArray) -> npt.NDArray: |
| 219 | """Compute cosine distance.""" |
nothing calls this directly
no test coverage detected