Skip to content
Snippets Groups Projects
Commit 4b068ce7 authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

change the style of function comments

parent cba04162
Branches
Tags
1 merge request!27Remove nan from scores and report FTA instead
Pipeline #
...@@ -277,7 +277,7 @@ def plots(crit, points, filename, dev_scores, test_scores=None): ...@@ -277,7 +277,7 @@ def plots(crit, points, filename, dev_scores, test_scores=None):
def remove_nan(scores): def remove_nan(scores):
'removes the NaNs from the scores' """removes the NaNs from the scores"""
nans = numpy.isnan(scores) nans = numpy.isnan(scores)
sum_nans = sum(nans) sum_nans = sum(nans)
total = len(scores) total = len(scores)
...@@ -287,7 +287,7 @@ def remove_nan(scores): ...@@ -287,7 +287,7 @@ def remove_nan(scores):
def get_fta(scores): def get_fta(scores):
'calculates the Failure To Acquire (FtA)' """calculates the Failure To Acquire (FtA) rate"""
fta_sum, fta_total = 0, 0 fta_sum, fta_total = 0, 0
neg, sum_nans, total = remove_nan(scores[0]) neg, sum_nans, total = remove_nan(scores[0])
fta_sum += sum_nans fta_sum += sum_nans
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment