Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.measure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Commits
4b068ce7
There was a problem fetching the pipeline summary.
Commit
4b068ce7
authored
8 years ago
by
Amir Mohammadi
Browse files
Options
Downloads
Patches
Plain Diff
change the style of function comments
parent
cba04162
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!27
Remove nan from scores and report FTA instead
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/measure/script/compute_perf.py
+2
-2
2 additions, 2 deletions
bob/measure/script/compute_perf.py
with
2 additions
and
2 deletions
bob/measure/script/compute_perf.py
+
2
−
2
View file @
4b068ce7
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment