Skip to content

Commit

Permalink
Fix bad import
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Dec 19, 2024
1 parent d507abc commit d425e6f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions validator/weight_setting/contest_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

from base.checkpoint import Key, current_time, Submissions, Benchmarks
from base.contest import Metrics, BenchmarkState
from weight_setting.winner_selection import get_contestant_scores, get_contestant_ranks, calculate_rank_weights

from inputs_api import get_inputs_state
from base.inputs_api import get_inputs_state
from weight_setting.winner_selection import get_contestant_scores
from winner_selection import calculate_score_weights

logger = get_logger(__name__)
Expand Down Expand Up @@ -68,9 +67,6 @@ def sleep_to_next_contest(self, stop_flag: Event):
stop_flag.wait(next_contest_time.total_seconds())

def get_scores(self, benchmarks: Benchmarks) -> dict[Key, float]:
if not self.baseline:
return {}

return get_contestant_scores(
submissions=self.submissions,
benchmarks=benchmarks,
Expand Down

0 comments on commit d425e6f

Please sign in to comment.