Spaces:
Runtime error
Runtime error
gorkaartola
commited on
Commit
•
df896d1
1
Parent(s):
1eb630b
Update metric_for_tp_fp_samples.py
Browse files
metric_for_tp_fp_samples.py
CHANGED
@@ -226,7 +226,7 @@ class metric_tp_fp_Datasets(evaluate.Metric):
|
|
226 |
else:
|
227 |
if FPifWrong:
|
228 |
for k in i:
|
229 |
-
|
230 |
FP_data = FP_data.sort_values(by=["class"], ignore_index = True)
|
231 |
if j[1] == 2:
|
232 |
FP_data.loc[FP_data["class"] == j[0], "number of samples"] += 1
|
|
|
226 |
else:
|
227 |
if FPifWrong:
|
228 |
for k in i:
|
229 |
+
FP_data.loc[FP_data["class"] == k, "coincidence count"] += 1
|
230 |
FP_data = FP_data.sort_values(by=["class"], ignore_index = True)
|
231 |
if j[1] == 2:
|
232 |
FP_data.loc[FP_data["class"] == j[0], "number of samples"] += 1
|