Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 09b1361

Browse files
committed
[REF] Compute accuracy
Fixes N806 variable 'SCORE_VAL' in function should be lowercase
1 parent ffaec76 commit 09b1361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

camelot/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,10 @@ def compute_accuracy(error_weights):
11891189
score : float
11901190
11911191
"""
1192-
SCORE_VAL = 100
1192+
score_val = 100
11931193
try:
11941194
score = 0
1195-
if sum([ew[0] for ew in error_weights]) != SCORE_VAL:
1195+
if sum([ew[0] for ew in error_weights]) != score_val:
11961196
raise ValueError("Sum of weights should be equal to 100.")
11971197
for ew in error_weights:
11981198
weight = ew[0] / len(ew[1])

0 commit comments

Comments
 (0)