natolambert commited on
Commit
faa2dab
1 Parent(s): 65e180d
Files changed (1) hide show
  1. src/utils.py +6 -0
src/utils.py CHANGED
@@ -64,6 +64,9 @@ def load_all_data(data_repo, subdir:str, subsubsets=False): # use HF api to p
64
  # if model_type is a column (pref tests may not have it)
65
  if "model_type" in cols:
66
  cols.remove("model_type")
 
 
 
67
  # remove model_beaker from dataframe
68
  if "model_beaker" in cols:
69
  cols.remove("model_beaker")
@@ -94,6 +97,9 @@ def load_all_data(data_repo, subdir:str, subsubsets=False): # use HF api to p
94
  if "xstest" in df.columns:
95
  df = df.drop(columns=["xstest"])
96
 
 
 
 
97
  # remove column anthropic and summarize_prompted (outdated data)
98
  if "anthropic" in df.columns:
99
  df = df.drop(columns=["anthropic"])
 
64
  # if model_type is a column (pref tests may not have it)
65
  if "model_type" in cols:
66
  cols.remove("model_type")
67
+ # remove ref_model if in columns
68
+ if "ref_model" in cols:
69
+ cols.remove("ref_model")
70
  # remove model_beaker from dataframe
71
  if "model_beaker" in cols:
72
  cols.remove("model_beaker")
 
97
  if "xstest" in df.columns:
98
  df = df.drop(columns=["xstest"])
99
 
100
+ if "ref_model" in df.columns:
101
+ df = df.drop(columns=["ref_model"])
102
+
103
  # remove column anthropic and summarize_prompted (outdated data)
104
  if "anthropic" in df.columns:
105
  df = df.drop(columns=["anthropic"])