def build_permuted_index(self):
for child_hash in self.child_hashes:<EOL><INDENT>config = child_hash['<STR_LIT>']<EOL>num_permutation = config['<STR_LIT>']<EOL>beam_size = config['<STR_LIT>']<EOL>num_neighbour = config['<STR_LIT>']<EOL>bucket_keys = child_hash['<STR_LIT>'].keys()<EOL>lshash = child_hash['<STR_LIT>']<EOL>self.permutation.build_permuted_index(lshash,bucket_keys,num_permutation,beam_size,num_neighbour)<EOL><DEDENT>
Build PermutedIndex for all your binary hashings.
PermutedIndex would be used to find the neighbour bucket key
in terms of Hamming distance. Permute_configs is nested dict
in the following format:
permuted_config = {"<hash_name>":
                   { "num_permutation":50,
                     "beam_size":10,
                     "num_neighbour":100 }
                  }