classification_accuracy¶
-
tfsnippet.ops.
classification_accuracy
(y_pred, y_true, name=None)¶ Compute the classification accuracy for y_pred and y_true.
Parameters: - y_pred – The predicted labels.
- y_true – The ground truth labels. Its shape must match y_pred.
- name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns: The accuracy.
Return type: tf.Tensor