Madhavan Iyengar commited on
Commit
b894895
1 Parent(s): 741f250

only show precision by default

Browse files
Files changed (1) hide show
  1. src/display/utils.py +4 -1
src/display/utils.py CHANGED
@@ -30,7 +30,10 @@ auto_eval_column_dict.append(["model", ColumnContent, ColumnContent("Model", "ma
30
  #Scores
31
  # auto_eval_column_dict.append(["average", ColumnContent, ColumnContent("Average ⬆️", "number", True)])
32
  for task in Tasks:
33
- auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", True)])
 
 
 
34
  # Model information
35
  auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False, True)])
36
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False, True)])
 
30
  #Scores
31
  # auto_eval_column_dict.append(["average", ColumnContent, ColumnContent("Average ⬆️", "number", True)])
32
  for task in Tasks:
33
+ display_by_default = False
34
+ if 'precision' in task.value.benchmark:
35
+ display_by_default = True
36
+ auto_eval_column_dict.append([task.name, ColumnContent, ColumnContent(task.value.col_name, "number", displayed_by_default=display_by_default)])
37
  # Model information
38
  auto_eval_column_dict.append(["model_type", ColumnContent, ColumnContent("Type", "str", False, True)])
39
  auto_eval_column_dict.append(["architecture", ColumnContent, ColumnContent("Architecture", "str", False, True)])