accuracy

accuracy(x: numpy.ndarray, y: numpy.ndarray) → float

Checks how accurate your model is.

Compares true and guessed values, and returns the precentage of how many values match.

Parameters
  • x (Tensor) – true values

  • y (Tensor) – guessed values

Returns

Percentige of equal elements between two arrays

Return type

float