Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.bio.face
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.bio.face
Commits
ff2ba223
Commit
ff2ba223
authored
Dec 05, 2020
by
Tiago de Freitas Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[nosetests] removed BIC tests
parent
8d960dd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
28 deletions
+1
-28
bob/bio/face/test/test_algorithms.py
bob/bio/face/test/test_algorithms.py
+1
-28
No files found.
bob/bio/face/test/test_algorithms.py
View file @
ff2ba223
...
...
@@ -96,8 +96,7 @@ def test_gabor_jet():
def
test_histogram
():
histogram
=
bob
.
bio
.
face
.
algorithm
.
Histogram
(
distance_function
=
bob
.
math
.
histogram_intersection
,
is_distance_function
=
False
distance_function
=
bob
.
math
.
histogram_intersection
,
is_distance_function
=
False
)
assert
isinstance
(
histogram
,
bob
.
bio
.
face
.
algorithm
.
Histogram
)
...
...
@@ -150,29 +149,3 @@ def test_histogram():
)
<
1e-5
)
def
test_bic_jets
():
similarity_function
=
bob
.
ip
.
gabor
.
Similarity
(
"PhaseDiffPlusCanberra"
,
bob
.
ip
.
gabor
.
Transform
())
def
gabor_jet_similarities
(
f1
,
f2
):
"""Computes the similarity vector between two Gabor graph features"""
assert
len
(
f1
)
==
len
(
f2
)
return
[
similarity_function
(
f1
[
i
],
f2
[
i
])
for
i
in
range
(
len
(
f1
))]
bic
=
bob
.
bio
.
base
.
algorithm
.
BIC
(
# measure to compare two features in input space
comparison_function
=
gabor_jet_similarities
,
# load and save functions
read_function
=
bob
.
ip
.
gabor
.
load_jets
,
write_function
=
bob
.
ip
.
gabor
.
save_jets
,
# Limit the number of training pairs
maximum_training_pair_count
=
1000000
,
# Dimensions of intrapersonal and extrapersonal subspaces
subspace_dimensions
=
(
20
,
20
),
multiple_model_scoring
=
'max'
)
assert
isinstance
(
bic
,
bob
.
bio
.
base
.
algorithm
.
BIC
)
assert
isinstance
(
bic
,
bob
.
bio
.
base
.
algorithm
.
Algorithm
)
Write
Preview
Markdown
is supported
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