Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
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.bio.base
Commits
36b9ab2d
Commit
36b9ab2d
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Removed the sketch of ZTNorm
parent
b3b0dacb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!185
Wrappers and aggregators
,
!180
[dask] Preparing bob.bio.base for dask pipelines
Pipeline
#39325
failed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/pipelines/vanilla_biometrics/pipeline.py
+0
-63
0 additions, 63 deletions
bob/bio/base/pipelines/vanilla_biometrics/pipeline.py
with
0 additions
and
63 deletions
bob/bio/base/pipelines/vanilla_biometrics/pipeline.py
+
0
−
63
View file @
36b9ab2d
...
...
@@ -148,69 +148,6 @@ class VanillaBiometrics(object):
return
scores
class
VanillaBiometricsZTNorm
(
object
):
"""
Vanilla Biometrics Pipelines that runs ZT Score Normalization
"""
def
__init__
(
vanilla_pipeline
):
self
.
vanilla_pipeline
=
vanilla_pipeline
def
__call__
(
self
,
background_model_samples
,
biometric_reference_samples
,
probe_samples
,
z_probe_samples
,
t_biometric_reference_samples
,
allow_scoring_with_all_biometric_references
=
False
,
):
logger
.
info
(
f
"
>> Vanilla Biometrics: Training background model with pipeline
{
self
.
transformer
}
"
)
# Training background model (fit will return even if samples is ``None``,
# in which case we suppose the algorithm is not trainable in any way)
self
.
vanilla_pipeline
.
transformer
=
self
.
vanilla_pipeline
.
train_background_model
(
background_model_samples
)
logger
.
info
(
f
"
>> Creating biometric references with the biometric algorithm
{
self
.
biometric_algorithm
}
"
)
# Create biometric samples
biometric_references
=
self
.
vanilla_pipeline
.
create_biometric_reference
(
biometric_reference_samples
)
logger
.
info
(
f
"
>> Computing scores with the biometric algorithm
{
self
.
biometric_algorithm
}
"
)
# Scores all probes
scores
=
self
.
vanilla_pipeline
.
compute_scores
(
probe_samples
,
biometric_references
,
allow_scoring_with_all_biometric_references
,
)
# Return a list of SampleSets containing the Z-Statistics per
# biometric reference
zstatistics
=
self
.
compute_zstatistics
(
zprobe_samples
,
biometric_references
,
allow_scoring_with_all_biometric_references
,
)
z_norm_scores
=
self
.
znorm
(
scores
,
zstatistics
)
# Create t-biometric references
t_biometric_references
=
self
.
vanilla_pipeline
.
create_biometric_reference
(
t_biometric_reference_samples
)
def
dask_vanilla_biometrics
(
pipeline
,
npartitions
=
None
):
"""
Given a :py:class:`VanillaBiometrics`, wraps :py:meth:`VanillaBiometrics.transformer` and
...
...
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