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:
Returns:

acc – between 0 and 1. Sum of predicted labels that equal true labels, divided by number of true labels.

Return type:

float