vak.metrics.classification.functional.accuracy¶
- vak.metrics.classification.functional.accuracy(y_pred, y_true)[source]¶
standard supervised learning classification accuracy: Sum of predicted labels that equal true labels, divided by number of true labels.
- Parameters:
y_pred (torch.Tensor)
y_true (torch.Tensor)
- Returns:
acc – between 0 and 1. Sum of predicted labels that equal true labels, divided by number of true labels.
- Return type: