Ensure that a point is hashable by a python dict.
(x: NDArray[Float])
| 28 | |
| 29 | |
| 30 | def _hashable(x: NDArray[Float]) -> tuple[float, ...]: |
| 31 | """Ensure that a point is hashable by a python dict.""" |
| 32 | return tuple(map(float, x)) |
| 33 | |
| 34 | |
| 35 | class TargetSpace: |
no outgoing calls
no test coverage detected