File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ def ltoo_by_method(
2323 k = 100
2424):
2525 """Cross validation by method."""
26- auroc_metrics = defaultdict (lambda : defaultdict (list ))
27- auprc_metrics = defaultdict (lambda : defaultdict (list ))
26+ auroc_metrics = defaultdict (lambda : defaultdict (lambda : defaultdict ( list ) ))
27+ auprc_metrics = defaultdict (lambda : defaultdict (lambda : defaultdict ( list ) ))
2828
2929 for _ in tqdm (range (k )):
3030 for entity in mapping_input :
@@ -61,8 +61,8 @@ def ltoo_by_method(
6161 auroc , auprc = (0 , 0 )
6262 print (f'ROC AUC unable to calculate for { validation_set } ' )
6363
64- auroc_metrics [entity_label ][method ].append (auroc )
65- auprc_metrics [entity_label ][method ].append (auprc )
64+ auroc_metrics [entity ][ entity_label ][method ].append (auroc )
65+ auprc_metrics [entity ][ entity_label ][method ].append (auprc )
6666
6767 return auroc_metrics , auprc_metrics
6868
You can’t perform that action at this time.
0 commit comments