Categories
Misc

custom accuracy metric

Hi, I have been trying to implement a custom masked accuracy metric which does not consider the pad tokens (similar to the masked loss as shown here https://www.tensorflow.org/text/tutorials/nmt_with_attention). I have been trying to create a new subclass using the tf.keras. metrics.Metric, but I am very confused. Any leads would be really appreciated.

submitted by /u/Hour-Tie-7471
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *