fix: get_metric_direction for aerial-cactus-identification (#970)

This commit is contained in:
Tim
2025-06-17 18:06:38 +08:00
committed by GitHub
parent f73f387c89
commit 76c8e2d041
@@ -202,6 +202,8 @@ def get_metric_direction(competition: str) -> bool:
Return **True** if the metric is *bigger is better*, **False** if *smaller is better*.
"""
leaderboard = leaderboard_scores(competition)
if float(leaderboard[0]) == float(leaderboard[-1]):
return float(leaderboard[0]) >= 0.5
return float(leaderboard[0]) > float(leaderboard[-1])