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
a7a9b143
Commit
a7a9b143
authored
Jul 03, 2017
by
Manuel Günther
Browse files
Updated CMC documentation
parent
0e017fca
Pipeline
#10821
passed with stages
in 6 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/__init__.py
View file @
a7a9b143
...
...
@@ -254,7 +254,9 @@ def recognition_rate(cmc_scores, threshold = None, rank = 1):
def
cmc
(
cmc_scores
):
"""Calculates the cumulative match characteristic (CMC) from the given input.
"""cmc(cmc_scores) -> array
Calculates the cumulative match characteristic (CMC) from the given input.
The input has a specific format, which is a list of two-element tuples. Each
of the tuples contains the negative and the positive scores for one probe
...
...
@@ -290,9 +292,11 @@ def cmc(cmc_scores):
Returns:
array: A 2D float array representing the CMC curve, with the Rank in the
first column and the number of correctly classified clients (in this
rank) in the second column.
array:
A 1D float array representing the CMC curve.
The rank 1 recognition rate can be found in ``array[0]``, rank 2 rate in
``array[1]``, and so on. The number of ranks (``array.shape[0]``) is the
number of gallery items. Values are in range ``[0,1]``.
"""
...
...
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