Skip to content

Commit

Permalink
Add optimal subset results
Browse files Browse the repository at this point in the history
TODO: MultiPref Experts and Normal
  • Loading branch information
ljvmiranda921 committed Sep 25, 2024
1 parent 980c647 commit a71bfbd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
16 changes: 8 additions & 8 deletions results/rewardbench_multipref_feats_best.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"MultiPref (Majority)": {
"optimal": {
"score": null,
"score": 0.706378476,
"std": null,
"swaps": null
"swaps": 1.49
},
"human_100": {
"score": 0.6036541233,
Expand Down Expand Up @@ -172,9 +172,9 @@
},
"HelpSteer2": {
"optimal": {
"score": null,
"score": 0.7970620446,
"std": null,
"swaps": null
"swaps": 2.78
},
"human_100": {
"score": 0.7244862062,
Expand Down Expand Up @@ -229,9 +229,9 @@
},
"ChatArena": {
"optimal": {
"score": null,
"score": 0.7227572617,
"std": null,
"swaps": null
"swaps": 0.92
},
"human_100": {
"score": 0.5900274236,
Expand Down Expand Up @@ -286,9 +286,9 @@
},
"AlpacaFarm": {
"optimal": {
"score": null,
"score": 0.6681374886,
"std": null,
"swaps": null
"swaps": 2.69
},
"human_100": {
"score": 0.5506994896,
Expand Down
31 changes: 16 additions & 15 deletions scripts/plot_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,22 @@ def plot(ax, dataset: str):
)

# Plot optimal scores
x_opt = data["dataset"]["optimal"].get(
"swaps", 0
) # you need to precompute this: swaps / total_counts then interpolate
y_opt = data[dataset]["optimal"].get("score", 0) * 100

# Plot optimal scores
ax.plot(
x_opt,
y_opt,
"*",
markersize=20,
color=COLORS.get("green"),
# markeredgecolor=COLORS.get("dark_teal"),
label="Optimal subset",
)
# you need to precompute this: swaps / total_counts then interpolate
x_opt = data[dataset]["optimal"].get("swaps")
y_opt = data[dataset]["optimal"].get("score")

if x_opt and y_opt:
y_opt = y_opt * 100
# Plot optimal scores
ax.plot(
x_opt,
y_opt,
"*",
markersize=20,
color=COLORS.get("green"),
# markeredgecolor=COLORS.get("dark_teal"),
label="Optimal subset",
)

ax.set_xticks(x)
ax.set_xticklabels(x_levels)
Expand Down

0 comments on commit a71bfbd

Please sign in to comment.