Source code for vak.metrics.classification.classification
from.importfunctionalasF__all__=["Accuracy",]
[docs]classAccuracy:"""standard supervised learning classification accuracy. Parameters ---------- y_pred : torch.Tensor y_true : torch.Tensor Returns ------- acc : float between 0 and 1. Sum of predicted labels that equal true labels, divided by number of true labels. """