File size: 474 Bytes
0bb476f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
#%%
import pandas as pd
from judgerbench.meta_data import (
DATADIR
)
#%%
df = pd.read_csv(DATADIR / "summary_20241007_221023.csv")
df
# %%
df_reshaped = (
df
.drop(columns=["dataset", "mode", "version"])
.melt(
id_vars=["metric"],
var_name="model",
value_name="value"
)
.pivot(index=["model"], columns=["metric"], values='value')
)
df_reshaped.columns.name = None
df_reshaped.reset_index(inplace=True)
df_reshaped
# %%
|