|View source on GitHub|
Computes hamming loss.
tfa.types.TensorLike, threshold: Union[FloatTensorLike, None], mode: str ) -> tf.Tensor
Hamming loss is the fraction of wrong labels to the total number of labels.
In multi-class classification, hamming loss is calculated as the
hamming distance between
In multi-label classification, hamming loss penalizes only the
|hamming loss: float.|