ConfusionMatrixΒΆ
Computes the confusion matrix from predictions and labels.
Abstract Signature:
ConfusionMatrix(labels: Tensor, predictions: Tensor, num_classes: int)
PyTorch
API:
torch.func.confusion_matrixStrategy: Plugin (torch_confusion_matrix_impl)
JAX (Core)
API:
βStrategy: Plugin (jax_confusion_matrix_impl)