Closed raunakdoesdev closed 2 years ago
You are right. The label index 45 does not have any positive test examples, and the Average Precision cannot be defined on the label. Our evaluator actually skips labels that do not have any positive examples: see here, so you won't experience the error if you use our evaluator.
Minimal reproducible example:
This results in an output of 0 meaning there are no positive examples for this specific endpoint (index 45). How can we properly calculate the overall average precision in this case? This metric is undefined with zero positive samples.