2f218b3ce2b1de05d60acfc563b32765a3e91f41,pynndescent/pynndescent_.py,,init_rp_tree,#Any#Any#Any#Any#Any#Any#,152

Before Change


                break
            for j in range(i + 1, leaf_array.shape[1]):
                q = leaf_array[n, j]
                if q < 0:
                    break
                if (p, q) in tried:
                    continue
                d = dist(data[p], data[q], *dist_args)
                heap_push(current_graph, p, d, q, 1)
                tried.add((p, q))
                if p != q:
                    heap_push(current_graph, q, d, p, 1)
                    tried.add((q, p))

After Change


                if np.isfinite(d):
                    p = leaf_array[n, i]
                    q = leaf_array[n, j]
                    heap_push(current_graph, p, d, q, 1)
                    heap_push(current_graph, q, d, p, 1)

        // for i in range(leaf_array.shape[1]):
        //     p = leaf_array[n, i]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: lmcinnes/pynndescent
Commit Name: 2f218b3ce2b1de05d60acfc563b32765a3e91f41
Time: 2019-10-06
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: init_rp_tree


Project Name: lmcinnes/pynndescent
Commit Name: 0e63e3d464f415d2bdcab9979d0c4afc4e558a4c
Time: 2019-10-28
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: init_random


Project Name: lmcinnes/pynndescent
Commit Name: 23077dca503596e4ca02dbf56788190627e5f370
Time: 2019-10-16
Author: leland.mcinnes@gmail.com
File Name: pynndescent/utils.py
Class Name:
Method Name: new_build_candidates