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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.measure
Merge requests
!29
Implemented generic functions to load and split scores
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Implemented generic functions to load and split scores
21-four-and-five-column-format-must-be-specified-by-the-user-although-it-could-be-automatically-estimated
into
master
Overview
1
Commits
1
Pipelines
1
Changes
6
Merged
Implemented generic functions to load and split scores
Manuel Günther
requested to merge
21-four-and-five-column-format-must-be-specified-by-the-user-although-it-could-be-automatically-estimated
into
master
Feb 21, 2017
Overview
1
Commits
1
Pipelines
1
Changes
6
Closes
#21 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
95b96cff
1 commit,
Feb 21, 2017
6 files
+
170
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
bob/measure/script/plot_cmc.py
+
1
−
15
View file @ 95b96cff
Edit in single-file editor
Open in Web IDE
Show full file
@@ -75,21 +75,7 @@ def main(user_input=None):
from
..
import
load
# Loads score file
f
=
load
.
open_file
(
args
[
'
<scores>
'
])
try
:
line
=
f
.
readline
()
ncolumns
=
len
(
line
.
split
())
except
Exception
:
logger
.
warn
(
'
Could not guess the number of columns in file: {}.
'
'
Assuming 4 column format.
'
.
format
(
args
[
'
<scores>
'
]))
ncolumns
=
4
finally
:
f
.
close
()
if
ncolumns
==
4
:
data
=
load
.
cmc_four_column
(
args
[
'
<scores>
'
])
else
:
data
=
load
.
cmc_five_column
(
args
[
'
<scores>
'
])
data
=
load
.
cmc
(
args
[
'
<scores>
'
])
# compute recognition rate
from
..
import
recognition_rate
Loading