Skip to content

Commit

Permalink
remove unnecessary random
Browse files Browse the repository at this point in the history
  • Loading branch information
qew21 committed Dec 24, 2024
1 parent 3ccdfa7 commit b2ce0c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rdagent/scenarios/kaggle/kaggle_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ def leaderboard_scores(competition: str) -> list[float]:
ll = api.competition_leaderboard_view(competition)
except Exception as e:
logger.error(f"Error: {e}")
import random
return [random.random() for _ in range(100)]
return [i / 100 for i in range(100)]
return [float(x.score) for x in ll]


Expand Down

0 comments on commit b2ce0c3

Please sign in to comment.