wlin21at commited on
Commit
da97590
1 Parent(s): 0dc8e8d

modify metric function

Browse files
Files changed (1) hide show
  1. metric.py +3 -3
metric.py CHANGED
@@ -533,9 +533,6 @@ def compute(params):
533
  missing_sample_ids.append(sample_id)
534
  if len(missing_sample_ids) > 0:
535
  print(f'Error: missing sample ids in the submission file: {missing_sample_ids}')
536
-
537
- metric_dict = {"public_score": public_category_score_dict,
538
- "private_score": private_category_score_dict} # keys of public_score, private_score is a must
539
  del public_category_score_dict['mydoc_rating']
540
  del public_category_score_dict['mychart_rating']
541
  del public_category_score_dict['myinfographic_rating']
@@ -545,6 +542,9 @@ def compute(params):
545
  del private_category_score_dict['mychart_rating']
546
  del private_category_score_dict['myinfographic_rating']
547
  del private_category_score_dict['phase2_overall_rating']
 
 
 
548
  return metric_dict
549
 
550
  ###################################################################################################################################################
 
533
  missing_sample_ids.append(sample_id)
534
  if len(missing_sample_ids) > 0:
535
  print(f'Error: missing sample ids in the submission file: {missing_sample_ids}')
 
 
 
536
  del public_category_score_dict['mydoc_rating']
537
  del public_category_score_dict['mychart_rating']
538
  del public_category_score_dict['myinfographic_rating']
 
542
  del private_category_score_dict['mychart_rating']
543
  del private_category_score_dict['myinfographic_rating']
544
  del private_category_score_dict['phase2_overall_rating']
545
+ metric_dict = {"public_score": public_category_score_dict,
546
+ "private_score": private_category_score_dict} # keys of public_score, private_score is a must
547
+
548
  return metric_dict
549
 
550
  ###################################################################################################################################################