--

The function `b_metrics` expects as input the logits and labels, and returns four metrics: accuracy, precision, recall and specificity. Therefore, during the training process must be invoked as:

`b_accuracy, b_precision, b_recall, b_specificity = b_metrics(logits, label_ids)`

Let me know if this helps.

Thanks,

--

--

Nicolo Cosimo Albanese
Nicolo Cosimo Albanese

Responses (2)