nueramic_mathml.ml.metrics.accuracy#

accuracy(y_true, y_pred)[source]#

Return accuracy. ACC = (TP + TN) / (P + N) = (TP + TN) / (TP + FP + TN + FN)

Parameters:
  • y_true (Tensor) – array with true values of binary classification

  • y_pred (Tensor) – array with prediction values of binary classification

Returns:

Return type:

float