Commit 4b068ce7 authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

change the style of function comments

parent cba04162
Pipeline #6995 passed with stages
in 13 minutes and 53 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment