1f85614aa3601a75f2ba8e5a039bf6a62e64b49c,umap/umap_.py,,nearest_neighbors,#Any#Any#Any#Any#Any#Any#Any#,149

Before Change


        The distances to the ``n_neighbors`` closest points in the dataset.
    
    if verbose:
        print(time.ctime(time.time()) + " Finding Nearest Neighbors")

    if metric == "precomputed":
        // Note that this does not support sparse distance matrices yet ...

After Change


            n_trees = 5 + int(round((X.shape[0]) ** 0.5 / 20.0))
            n_iters = max(5, int(round(np.log2(X.shape[0]))))
            if verbose:
                print(ts() + "Building RP forest with " + str(n_trees) + " trees")

            rp_forest = make_forest(X, n_neighbors, n_trees, rng_state, angular)
            leaf_array = rptree_leaf_array(rp_forest)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: lmcinnes/umap
Commit Name: 1f85614aa3601a75f2ba8e5a039bf6a62e64b49c
Time: 2019-04-19
Author: jlmelville@gmail.com
File Name: umap/umap_.py
Class Name:
Method Name: nearest_neighbors


Project Name: geekcomputers/Python
Commit Name: e0ce06f058e6950b99ac91271d4ad7786a7d941f
Time: 2017-04-28
Author: barnabysandeford@gmail.com
File Name: get_youtube_view.py
Class Name:
Method Name:


Project Name: lmcinnes/umap
Commit Name: 40966e92729881bbfb107aad5b5f0dd6ae571e0d
Time: 2019-04-19
Author: jlmelville@gmail.com
File Name: umap/umap_.py
Class Name:
Method Name: nearest_neighbors