Module: tfa.metrics.hamming

View source on GitHub

Implements Hamming distance and loss.

Classes

class HammingLoss: Computes hamming loss.

Functions

hamming_distance(...): Computes hamming distance.

hamming_loss_fn(...): Computes hamming loss.

Type Aliases

AcceptableDTypes

FloatTensorLike

TensorLike