Skip to content

Commit befedd2

Browse files
No public description
PiperOrigin-RevId: 596530662
1 parent 7174964 commit befedd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/projects/yt8m/eval_utils/mean_average_precision_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, num_class, filter_empty_classes=True, top_n=None):
5757
ValueError: An error occurred when num_class is not a positive integer;
5858
or the top_n_array is not a list of positive integers.
5959
"""
60-
if not isinstance(num_class, int) or num_class <= 1:
60+
if not isinstance(num_class, int) or num_class < 1:
6161
raise ValueError("num_class must be a positive integer.")
6262

6363
self._ap_calculators = [] # member of AveragePrecisionCalculator

0 commit comments

Comments
 (0)