Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore Call NameLoad Str Num keyword Num Assign NameStore Dict Str Str Str Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num keyword ListLoad AttributeLoad NameLoad attr keyword Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Num keyword ListLoad NameLoad keyword Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A numpy N/A unittest N/A logging nearpy Engine nearpy.distances CosineDistance nearpy.hashes HashPermutations nearpy.hashes RandomBinaryProjections past.builtins xrange TestPermutation N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A logging basicConfig level N/A logging WARNING N/A N/A N/A N/A numpy random seed 11 N/A N/A self permutations N/A HashPermutations permut N/A rbp N/A RandomBinaryProjections rbp1 4 rand_seed 19 N/A rbp_conf N/A num_permutation beam_size num_neighbour 50 10 100 N/A N/A N/A N/A self permutations add_child_hash rbp rbp_conf N/A N/A self engine_perm N/A Engine 200 lshashes N/A N/A self permutations distance N/A CosineDistance N/A N/A self engine N/A Engine 200 lshashes N/A rbp distance N/A CosineDistance N/A test_runnable N/A N/A self N/A N/A N/A matrix N/A N/A numpy zeros N/A 1000 200 N/A i N/A xrange 1000 N/A N/A v N/A N/A N/A numpy random randn 200 N/A N/A matrix N/A i v N/A N/A N/A N/A self engine store_vector v N/A N/A N/A N/A self engine_perm store_vector v N/A N/A N/A N/A self permutations build_permuted_index N/A query N/A N/A N/A numpy random randn 200 N/A results N/A N/A N/A self engine_perm neighbours query N/A permuted_dists N/A N/A x N/A 2 N/A x results N/A results N/A N/A N/A self engine neighbours query N/A dists N/A N/A x N/A 2 N/A x results N/A N/A N/A self assertLess N/A permuted_dists N/A 0 N/A dists N/A 0 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main