Commit 67525c05 authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA
Browse files

Set is_distance_function to True; specify distance_hamming script in setup.py

parent 6b73cb68
Pipeline #13763 passed with stages
in 9 minutes and 33 seconds
......@@ -5,5 +5,5 @@ import scipy.spatial.distance
algorithm = bob.bio.base.algorithm.Distance(
distance_function = scipy.spatial.distance.hamming,
is_distance_function = False # setting this to False ensures that Hamming distances are returned as positive values rather than negative
is_distance_function = True
)
......@@ -106,6 +106,7 @@ setup(
'dummy = bob.bio.base.test.dummy.algorithm:algorithm', # for test purposes only
'distance-euclidean = bob.bio.base.config.algorithm.distance_euclidean:algorithm',
'distance-cosine = bob.bio.base.config.algorithm.distance_cosine:algorithm',
'distance-hamming = bob.bio.base.config.algorithm.distance_hamming:algorithm',
'pca = bob.bio.base.config.algorithm.pca:algorithm',
'lda = bob.bio.base.config.algorithm.lda:algorithm',
'pca+lda = bob.bio.base.config.algorithm.pca_lda:algorithm',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment