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
f014c0ff
Commit
f014c0ff
authored
Feb 09, 2021
by
Fabien MAREUIL
Browse files
black format
parent
f8e49cd8
Pipeline
#47576
failed with stages
in 6 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/templatetags/customtags.py
View file @
f014c0ff
...
...
@@ -263,7 +263,7 @@ def get_zscore_threshold(avg_std):
@
register
.
filter
def
get_zscore
(
distance
,
avg_std
):
std
=
float
(
avg_std
.
std
)
mean
=
float
(
avg_std
.
average
)
#
mean = float(avg_std.average)
dist
=
float
(
distance
)
score
=
np
.
exp
(
-
((
dist
**
2
)
/
(
2
*
(
std
**
2
))))
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