MaskedAccuracy#
- class composer.metrics.MaskedAccuracy(ignore_index=- 100, dist_sync_on_step=False)[source]#
Computes accuracy with support for masked indices.
- Adds metric state variables:
correct (float): The number of instances where the prediction masked the target. total (float): The number of total instances that were predicted.