42fcef3e6d5c79f0d9772e8b9f63338c3e5f715e,pynndescent/sparse_nndescent.py,,sparse_init_from_random,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,308

Before Change


        to_data = query_data[query_indptr[i] : query_indptr[i + 1]]

        for j in range(indices.shape[0]):
            if indices[j] < 0:
                continue

            from_inds = inds[indptr[indices[j]] : indptr[indices[j] + 1]]
            from_data = data[indptr[indices[j]] : indptr[indices[j] + 1]]

            d = sparse_dist(from_inds, from_data, to_inds, to_data, *dist_args)

After Change


            to_data = query_data[query_indptr[i] : query_indptr[i + 1]]

            for j in range(np.sum(heap[0, i] == -1)):
                idx = np.abs(tau_rand_int(rng_state)) % (indptr.shape[0] - 1)

                from_inds = inds[indptr[idx] : indptr[idx + 1]]
                from_data = data[indptr[idx] : indptr[idx + 1]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: lmcinnes/pynndescent
Commit Name: 42fcef3e6d5c79f0d9772e8b9f63338c3e5f715e
Time: 2019-11-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/sparse_nndescent.py
Class Name:
Method Name: sparse_init_from_random


Project Name: oddt/oddt
Commit Name: 38b8e3235f26588d6f165172710850cb20f67270
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: glm-tools/pyglmnet
Commit Name: 0fb06066bb48ad3a05865807a3344e678576c826
Time: 2018-09-01
Author: yu.umegaki@gmail.com
File Name: tests/test_pyglmnet.py
Class Name:
Method Name: test_group_lasso