nebulae09 commited on
Commit
0d67165
1 Parent(s): 85530d8

update some models in part of the leaderboard

Browse files
Files changed (1) hide show
  1. lb_info.py +10 -0
lb_info.py CHANGED
@@ -113,6 +113,14 @@ def BUILD_L1_DF(results, fields):
113
  for i, m in enumerate(results):
114
  item = results[m]
115
  meta = item['META']
 
 
 
 
 
 
 
 
116
  for k in META_FIELDS:
117
  if k == 'Parameters (B)':
118
  param = meta['Parameters']
@@ -157,6 +165,8 @@ def BUILD_L2_DF(results, dataset):
157
  for m in results:
158
  item = results[m]
159
  meta = item['META']
 
 
160
  for k in META_FIELDS:
161
  if k == 'Parameters (B)':
162
  param = meta['Parameters']
 
113
  for i, m in enumerate(results):
114
  item = results[m]
115
  meta = item['META']
116
+ skip_model_in_main = False
117
+ for main_dataset in MAIN_FIELDS:
118
+ # judge dict is empty
119
+ if main_dataset not in item.keys() or item[main_dataset] == {}:
120
+ skip_model_in_main = True
121
+ break
122
+ if skip_model_in_main:
123
+ continue
124
  for k in META_FIELDS:
125
  if k == 'Parameters (B)':
126
  param = meta['Parameters']
 
165
  for m in results:
166
  item = results[m]
167
  meta = item['META']
168
+ if iten[dataset] == {}:
169
+ continue
170
  for k in META_FIELDS:
171
  if k == 'Parameters (B)':
172
  param = meta['Parameters']