(self, num_classes: int)
| 121 | |
| 122 | class ConfusionMatrix: |
| 123 | def __init__(self, num_classes: int): |
| 124 | self.num_classes = num_classes |
| 125 | self.matrix = np.zeros((num_classes, num_classes), dtype=np.int64) |
| 126 | |
| 127 | def update(self, predictions: np.ndarray, targets: np.ndarray): |
| 128 | for pred, target in zip(predictions, targets): |
nothing calls this directly
no outgoing calls
no test coverage detected