Commit 6b73cb68 authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA
Browse files

Add configuration file for Hamming distance algorithm

parent 55b0d0d1
Pipeline #13760 passed with stages
in 12 minutes and 40 seconds
""" 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
)
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