Skip to content

Commit

Permalink
Support negative weights
Browse files Browse the repository at this point in the history
  • Loading branch information
MsRandom committed Dec 12, 2024
1 parent 4645014 commit 388511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/base/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def calculate_score(self, baseline: Metrics, benchmark: Benchmark) -> float:
similarity = sqrt((benchmark.average_similarity - SIMILARITY_SCORE_THRESHOLD) * similarity_scale)

baseline_score = len(metric_weights)
highest_score = prod(w + 1 for w in metric_weights.values())
highest_score = prod(abs(w) + 1 for w in metric_weights.values())

ratio = highest_score / baseline_score

Expand Down

0 comments on commit 388511d

Please sign in to comment.