Martin Jurkovic commited on
Commit
7891337
·
1 Parent(s): 6daea60

Update dataset names

Browse files
Files changed (1) hide show
  1. src/populate.py +17 -0
src/populate.py CHANGED
@@ -19,6 +19,18 @@ model_names = {
19
  'SDV': "SDV",
20
  }
21
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  # def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
24
  # """Creates a dataframe from all the individual experiment results"""
@@ -76,7 +88,12 @@ def get_leaderboard_df(results_path: str, cols: list, benchmark_cols: list) -> p
76
  # Rename model if it exists in the mapping dictionary
77
  if model.upper() in model_names:
78
  model = model_names[model.upper()]
 
79
  dataset = data["dataset_name"]
 
 
 
 
80
  row = {"Dataset": dataset, "Model": model}
81
  for metric in multi_table_metrics:
82
  stripped_metric = strip_emoji(metric)
 
19
  'SDV': "SDV",
20
  }
21
 
22
+ # Dataset name mapping dictionary
23
+ dataset_names = {
24
+ "airbnb-simplified_subsampled": "Airbnb",
25
+ "Berka_subsampled": "Berka",
26
+ "Biodegradability_v1": "Biodegradability",
27
+ "CORA_v1": "Cora",
28
+ "imdb_MovieLens_v1": "IMDB",
29
+ "rossmann_subsampled": "Rossmann",
30
+ "walmart_subsampled": "Walmart",
31
+ "f1_subsampled": "F1",
32
+ }
33
+
34
 
35
  # def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
36
  # """Creates a dataframe from all the individual experiment results"""
 
88
  # Rename model if it exists in the mapping dictionary
89
  if model.upper() in model_names:
90
  model = model_names[model.upper()]
91
+
92
  dataset = data["dataset_name"]
93
+ # Rename dataset if it exists in the mapping dictionary
94
+ if dataset in dataset_names:
95
+ dataset = dataset_names[dataset]
96
+
97
  row = {"Dataset": dataset, "Model": model}
98
  for metric in multi_table_metrics:
99
  stripped_metric = strip_emoji(metric)