mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refac
This commit is contained in:
parent
c86a957cf5
commit
2c83287c46
1 changed files with 5 additions and 0 deletions
|
@ -114,12 +114,17 @@ def show_stats(dirnames):
|
|||
|
||||
# use the average in the main bar
|
||||
rows[repeat_row]["pass_rate_2"] = repeat_avg
|
||||
else:
|
||||
repeat_hi = repeat_lo = repeat_avg = None
|
||||
|
||||
df = pd.DataFrame.from_records(rows)
|
||||
df.sort_values(by=["model", "edit_format"], inplace=True)
|
||||
|
||||
dump(df)
|
||||
plot_outcomes(df, repeats, repeat_hi, repeat_lo, repeat_avg)
|
||||
|
||||
|
||||
def plot_outcomes(df, repeats, repeat_hi, repeat_lo, repeat_avg):
|
||||
tries = [df.groupby(["model", "edit_format"])["pass_rate_2"].mean()]
|
||||
if True:
|
||||
tries += [df.groupby(["model", "edit_format"])["pass_rate_1"].mean()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue