dadb33d17edd0319d2ed6cfe1c23bff4e9d4cdfd,finetune/util/metrics.py,,sequence_labeling_counts,#,279
Before Change
matched = True
d[true_annotation["label"]]["true_positives"].append(true_annotation)
else:
d [pred_annotation["label"]]["false_positives"].append(pred_annotation)
if not matched:
d[true_annotation["label"]]["false_negatives"].append(true_annotation)
After Change
annotation["doc_idx"] = i
for true_annotation in true_annotations:
for pred_annotation in predicted_annotations:
if equality_fn(true_annotation, pred_annotation):
if pred_annotation["label"] == true_annotation["label"]:
d[true_annotation["label"]]["true_positives"].append(true_annotation)
break
else:
d[true_annotation["label"]]["false_negatives"].append(true_annotation)
for pred_annotation in predicted_annotations:
for true_annotation in true_annotations:
if (
equality_fn(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: IndicoDataSolutions/finetune
Commit Name: dadb33d17edd0319d2ed6cfe1c23bff4e9d4cdfd
Time: 2020-06-02
Author: benlt@hotmail.co.uk
File Name: finetune/util/metrics.py
Class Name:
Method Name: sequence_labeling_counts
Project Name: havakv/pycox
Commit Name: 6e3d793152231d6e39f4cc7f33e0a1f74981e15c
Time: 2018-11-13
Author: haavard.kvamme@gmail..com
File Name: pycox/models/cox.py
Class Name: CoxBase
Method Name: fit_dataloader
Project Name: deeppomf/DeepCreamPy
Commit Name: 7c0c307a2a8fbdb9b0eb82c275ca8c977aae90f3
Time: 2018-10-30
Author: harjit@harjit.moe
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_all_images_in_folder