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
Commits
3fe154b9
There was a problem fetching the pipeline summary.
Commit
3fe154b9
authored
7 years ago
by
Theophile GENTILHOMME
Browse files
Options
Downloads
Patches
Plain Diff
Fix code and doc after removing the bio-related files
parent
caea2795
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!54
Refactors the score loading and scripts functionality
,
!49
Moving biometrics-related functionality to bob.bio.base
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/measure/__init__.py
+10
-21
10 additions, 21 deletions
bob/measure/__init__.py
with
10 additions
and
21 deletions
bob/measure/__init__.py
+
10
−
21
View file @
3fe154b9
...
...
@@ -7,9 +7,7 @@ from . import version
from
.version
import
module
as
__version__
from
.
import
plot
from
.
import
load
from
.
import
calibration
from
.
import
openbr
import
numpy
def
mse
(
estimation
,
target
):
...
...
@@ -134,9 +132,7 @@ def recognition_rate(cmc_scores, threshold = None, rank = 1):
The input has a specific format, which is a list of two-element tuples. Each
of the tuples contains the negative :math:`
\\
{S_p^-
\\
}` and the positive
:math:`
\\
{S_p^+
\\
}` scores for one probe item :math:`p`, or ``None`` in case
of open set recognition. To read the lists from score files in 4 or 5 column
format, please use the :py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column` function.
of open set recognition.
If ``threshold`` is set to ``None``, the rank 1 recognition rate is defined
as the number of test items, for which the highest positive
...
...
@@ -172,9 +168,9 @@ def recognition_rate(cmc_scores, threshold = None, rank = 1):
Parameters:
cmc_scores (:py:class:`list`): A list in the format ``[(negatives,
positives), ...]`` containing the CMC scores
loaded with one of the
functions (:py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column`
).
positives), ...]`` containing the CMC scores
(i.e. :py:class:`list`:
A list of tuples, where each tuple contains the
``negative`` and ``positive`` scores for one probe of the database
).
Each pair contains the ``negative`` and the ``positive`` scores for **one
probe item**. Each pair can contain up to one empty array (or ``None``),
...
...
@@ -258,9 +254,7 @@ def cmc(cmc_scores):
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
item. To read the lists from score files in 4 or 5 column format, please use
the :py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column` function.
item.
For each probe item the probability that the rank :math:`r` of the positive
score is calculated. The rank is computed as the number of negative scores
...
...
@@ -281,10 +275,7 @@ def cmc(cmc_scores):
cmc_scores : :py:class:`list`
A list in the format ``[(negatives, positives), ...]`` containing the CMC
scores loaded with one of the functions
:py:func:`bob.measure.load.cmc_four_column`,
:py:func:`bob.measure.load.cmc_five_column`, or
:py:func:`bob.measure.load.cmc`.
scores.
Each pair contains the ``negative`` and the ``positive`` scores for **one
probe item**. Each pair can contain up to one empty array (or ``None``),
...
...
@@ -345,9 +336,7 @@ def detection_identification_rate(cmc_scores, threshold, rank = 1):
Parameters:
cmc_scores (:py:class:`list`): A list in the format ``[(negatives,
positives), ...]`` containing the CMC scores loaded with one of the
functions (:py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column`).
positives), ...]`` containing the CMC.
Each pair contains the ``negative`` and the ``positive`` scores for **one
probe item**. Each pair can contain up to one empty array (or ``None``),
...
...
@@ -406,9 +395,9 @@ def false_alarm_rate(cmc_scores, threshold):
Parameters:
cmc_scores (:py:class:`list`): A list in the format ``[(negatives,
positives), ...]`` containing the CMC scores
loaded with one of the
functions (:py:func:`bob.measure.load.cmc_four_column` or
:py:func:`bob.measure.load.cmc_five_column`
).
positives), ...]`` containing the CMC scores
(i.e. :py:class:`list`:
A list of tuples, where each tuple contains the
``negative`` and ``positive`` scores for one probe of the database
).
Each pair contains the ``negative`` and the ``positive`` scores for **one
probe item**. Each pair can contain up to one empty array (or ``None``),
...
...
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