Skip to content

Commit 035f30c

Browse files
committed
Fixing similarities mistake
1 parent df730cf commit 035f30c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IrisMatching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def compute_nearest_center(reduced_feature, class_centers, distance_type='L2'):
6565
if distance_type != 'cosine':
6666
similarities = {label: 1 / (dist + 1e-8) for label, dist in distances.items()}
6767
else:
68-
similarities = {label: 1 / dist for label, dist in distances.items()}
68+
similarities = {label: dist for label, dist in distances.items()}
6969

7070
# Use the distance similarities to calculate a softmax score, which we can use for the ROC curve
7171
labels, values = zip(*similarities.items())

0 commit comments

Comments
 (0)