Skip to content
Snippets Groups Projects
Commit 6b73cb68 authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA
Browse files

Add configuration file for Hamming distance algorithm

parent 55b0d0d1
No related branches found
No related tags found
1 merge request!110Add configuration file for Hamming distance algorithm
Pipeline #
""" This script calculates the Hamming distance (proportion of mis-matching corresponding bits) between two binary arrays """
import bob.bio.base
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
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment