Fork me on GitHub

src/arraymancer/ml/metrics/accuracy_score

Search:
Group by:
  Source Edit

Procs

proc accuracy_score[T](y_pred, y_true: Tensor[T]): float
Input:
  • y_true: TensorT containing the ground truth (correct) labels
  • y_pred: TensorT containing the predicted labels

Returns:

  • The proportion of correctly classified samples (as float).
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood