Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
6ffa0e3c
Commit
6ffa0e3c
authored
Feb 05, 2021
by
Fabien MAREUIL
Browse files
inverse score
parent
5788ece5
Pipeline
#47329
passed with stages
in 19 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/templatetags/customtags.py
View file @
6ffa0e3c
...
...
@@ -265,7 +265,7 @@ def get_zscore(distance, avg_std):
value_max
=
avg_std
.
average
+
(
avg_std
.
average
-
avg_std
.
minimum
)
if
distance
>
value_max
:
distance
=
value_max
score
=
(
distance
-
avg_std
.
minimum
)
/
(
value_max
-
avg_std
.
minimum
)
score
=
1
-
(
distance
-
avg_std
.
minimum
)
/
(
value_max
-
avg_std
.
minimum
)
return
score
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment