Home
last modified time | relevance | path

Searched refs:sort_keys (Results 1 – 1 of 1) sorted by relevance

/art/imgdiag/
Dcreate_dirty_image_objects.py44 def opt_neighbours(sort_keys): argument
45 sort_keys = dict(sort_keys)
50 sort_keys.items(), key=lambda item: (item[0].bit_count(), len(item[1]))
52 res.append((cur_key, sort_keys[cur_key]))
53 del sort_keys[cur_key]
56 while sort_keys:
61 next_key = max(sort_keys.keys(), key=jaccard_index)
62 res.append((next_key, sort_keys[next_key]))
63 del sort_keys[next_key]
80 sort_keys = defaultdict(list)
[all …]