Spaces:
Running
Running
openhands openhands commited on
Commit ·
e6be394
1
Parent(s): 5cdf97c
Simplify axis labels: 'Average (mean)' -> 'Average'
Browse files
leaderboard_transformer.py
CHANGED
|
@@ -434,9 +434,9 @@ def _plot_scatter_plotly(
|
|
| 434 |
|
| 435 |
# Set axis labels based on plot type
|
| 436 |
if plot_type == 'runtime':
|
| 437 |
-
x_axis_label = f"Average
|
| 438 |
else:
|
| 439 |
-
x_axis_label = f"Average
|
| 440 |
max_reported_cost = 0
|
| 441 |
divider_line_x = 0
|
| 442 |
|
|
@@ -722,7 +722,7 @@ def _plot_scatter_plotly(
|
|
| 722 |
template="plotly_white",
|
| 723 |
title=plot_title,
|
| 724 |
xaxis=xaxis_config,
|
| 725 |
-
yaxis=dict(title="Average
|
| 726 |
legend=dict(
|
| 727 |
bgcolor='#FAF2E9',
|
| 728 |
),
|
|
|
|
| 434 |
|
| 435 |
# Set axis labels based on plot type
|
| 436 |
if plot_type == 'runtime':
|
| 437 |
+
x_axis_label = f"Average runtime per problem (seconds)" if x else "Runtime (Data N/A)"
|
| 438 |
else:
|
| 439 |
+
x_axis_label = f"Average cost per problem (USD)" if x else "Cost (Data N/A)"
|
| 440 |
max_reported_cost = 0
|
| 441 |
divider_line_x = 0
|
| 442 |
|
|
|
|
| 722 |
template="plotly_white",
|
| 723 |
title=plot_title,
|
| 724 |
xaxis=xaxis_config,
|
| 725 |
+
yaxis=dict(title="Average score", range=[y_min, y_max]), # Match domain calculation
|
| 726 |
legend=dict(
|
| 727 |
bgcolor='#FAF2E9',
|
| 728 |
),
|