Spaces:
Running
on
T4
Running
on
T4
passing on 40 %
Browse files- app/passing.py +1 -1
app/passing.py
CHANGED
@@ -5,7 +5,7 @@ def normalize_euclidean(euclidean, max_value):
|
|
5 |
"""
|
6 |
return max(0, 100 - (euclidean / max_value) * 100)
|
7 |
|
8 |
-
def calculate_passing(sequence, phonetic, cosine=0, euclidean=0, passing_threshold=
|
9 |
# Normalize sequence and phonetic to 0-100 scale
|
10 |
sequence_normalized = sequence * 100
|
11 |
phonetic_normalized = phonetic * 100
|
|
|
5 |
"""
|
6 |
return max(0, 100 - (euclidean / max_value) * 100)
|
7 |
|
8 |
+
def calculate_passing(sequence, phonetic, cosine=0, euclidean=0, passing_threshold=40, euclidean_max=200):
|
9 |
# Normalize sequence and phonetic to 0-100 scale
|
10 |
sequence_normalized = sequence * 100
|
11 |
phonetic_normalized = phonetic * 100
|