Skip to content

Commit

Permalink
Adjust grading scales
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrosenthal committed Feb 14, 2024
1 parent 19077e5 commit 3558ef0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions algobowl/controllers/competition.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def compute_rankings_grade(gt, fleet_num, fleet):
last_adj_score = other_gt.rankings.adj_score
if other_gt is gt:
break
if len(fleet) == 1:
return 5 + fleet_num * 5
return (place_in_fleet / (len(fleet) - 1)) * 5 + fleet_num * 5


Expand Down Expand Up @@ -376,15 +378,15 @@ def new_gt(rankings_entry):
gt, gt.fleet, fleets[gt.fleet]
)
gt.contributions.verification = (
(gt.verification.correct / sum(gt.verification) * 5)
(gt.verification.correct / sum(gt.verification) * 20)
if any(gt.verification)
else 0
)
gt.contributions.participation = (
(compinfo.inputs - gt.rankings.reject_count) / compinfo.inputs * 70
(compinfo.inputs - gt.rankings.reject_count) / compinfo.inputs * 50
)
gt.contributions.input_difficulty = (
(7 + len(gt.input.scores_s) / compinfo.best_input_difference * 3)
(5 + len(gt.input.scores_s) / compinfo.best_input_difference * 10)
if gt.input.scores_l
else 0
)
Expand Down
8 changes: 4 additions & 4 deletions algobowl/templates/edu_landing.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,19 @@
<tbody>
<tr>
<th scope="row">Input Uploaded</th>
<td>7%</td>
<td>5%</td>
</tr>
<tr>
<th scope="row">Input Difficulty</th>
<td>3%</td>
<td>10%</td>
</tr>
<tr>
<th scope="row">Valid Outputs</th>
<td>70%</td>
<td>50%</td>
</tr>
<tr>
<th scope="row">Verification Accuracy</th>
<td>5%</td>
<td>20%</td>
</tr>
<tr>
<th scope="row">Rankings</th>
Expand Down

0 comments on commit 3558ef0

Please sign in to comment.