datumaro.components.algorithms.hash_key_inference.hashkey_util#

Functions

calculate_hamming(B1, B2)

param B1:

vector [n]

check_and_convert_to_list(paths)

match_query_subset(query_id, dataset[, subset])

select_uninferenced_dataset(dataset)

datumaro.components.algorithms.hash_key_inference.hashkey_util.select_uninferenced_dataset(dataset)[source]#
datumaro.components.algorithms.hash_key_inference.hashkey_util.calculate_hamming(B1, B2)[source]#
Parameters:
  • B1 – vector [n]

  • B2 – vector [r*n]

Returns:

hamming distance [r]

datumaro.components.algorithms.hash_key_inference.hashkey_util.match_query_subset(query_id, dataset, subset=None)[source]#
datumaro.components.algorithms.hash_key_inference.hashkey_util.check_and_convert_to_list(paths)[source]#