Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
4b068ce7
Commit
4b068ce7
authored
Feb 08, 2017
by
Amir Mohammadi
Browse files
change the style of function comments
parent
cba04162
Pipeline
#6995
passed with stages
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/script/compute_perf.py
View file @
4b068ce7
...
...
@@ -277,7 +277,7 @@ def plots(crit, points, filename, dev_scores, test_scores=None):
def
remove_nan
(
scores
):
'
removes the NaNs from the scores
'
"""
removes the NaNs from the scores
"""
nans
=
numpy
.
isnan
(
scores
)
sum_nans
=
sum
(
nans
)
total
=
len
(
scores
)
...
...
@@ -287,7 +287,7 @@ def remove_nan(scores):
def
get_fta
(
scores
):
'
calculates the Failure To Acquire (FtA)
'
"""
calculates the Failure To Acquire (FtA)
rate"""
fta_sum
,
fta_total
=
0
,
0
neg
,
sum_nans
,
total
=
remove_nan
(
scores
[
0
])
fta_sum
+=
sum_nans
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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