Skip to content
GitLab
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
3991aee9
Commit
3991aee9
authored
Apr 26, 2016
by
Manuel Günther
Browse files
Fixed doctest outputs (which are based on random values) not to be written any more
parent
4ef35122
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/guide.rst
View file @
3991aee9
...
...
@@ -189,8 +189,7 @@ For each probe item, the scores for negative and positive comparisons are comput
...
pos
=
numpy
.
random
.
normal
(
1
,
1
,
1
)
...
neg
=
numpy
.
random
.
normal
(
0
,
1
,
19
)
...
rr_scores
.
append
((
neg
,
pos
))
>>>
bob
.
measure
.
recognition_rate
(
rr_scores
,
rank
=
1
)
0.3
>>>
rr
=
bob
.
measure
.
recognition_rate
(
rr_scores
,
rank
=
1
)
For
open
set
identification
,
according
to
Li
and
Jain
(
2005
)
there
are
two
different
error
measures
defined
.
The
first
measure
is
the
:
py
:
func
:`
bob
.
measure
.
detection_identification_rate
`,
which
counts
the
number
of
correctly
classified
in
-
gallery
probe
items
.
...
...
@@ -206,10 +205,8 @@ Both functions require that at least one probe item exists, which has no accordi
...
pos
=
None
...
neg
=
numpy
.
random
.
normal
(-
2
,
1
,
10
)
...
rr_scores
.
append
((
neg
,
pos
))
>>>
bob
.
measure
.
detection_identification_rate
(
rr_scores
,
threshold
=
0
,
rank
=
1
)
0.3
>>>
bob
.
measure
.
false_alarm_rate
(
rr_scores
,
threshold
=
0
)
0.2
>>>
dir
=
bob
.
measure
.
detection_identification_rate
(
rr_scores
,
threshold
=
0
,
rank
=
1
)
>>>
far
=
bob
.
measure
.
false_alarm_rate
(
rr_scores
,
threshold
=
0
)
Plotting
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment