0a693bf0b04e5c200635f3ae14ecce04f8095a66,pynndescent/rp_trees.py,,make_forest,#Any#Any#Any#Any#Any#Any#,846
Before Change
// ]
// result = [make_tree(data, rng_state, leaf_size, angular) for i in range(n_trees)]
if scipy.sparse.isspmatrix_csr(data):
result = [
make_sparse_tree(
data.indices, data.indptr, data.data, rng_state, leaf_size, angular
)
for i in range(n_trees)
]
else:
// result = dense_forest_parallel(data, n_trees, leaf_size, rng_state,
// angular)
// result = [make_dense_tree(data, rng_state, leaf_size, angular) for i in range(
After Change
// )
// for i in range(n_trees)
// ]
result = joblib.Parallel(n_jobs=-1, prefer="threads")(
joblib.delayed(make_sparse_tree)(data.indices,
data.indptr,
data.data,
rng_state,
leaf_size,
angular)
for i in range(n_trees)
)
else:
// result = dense_forest_parallel(data, n_trees, leaf_size, rng_state,
// angular)
// result = [make_dense_tree(data, rng_state, leaf_size, angular) for i in range(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: lmcinnes/pynndescent
Commit Name: 0a693bf0b04e5c200635f3ae14ecce04f8095a66
Time: 2019-10-17
Author: leland.mcinnes@gmail.com
File Name: pynndescent/rp_trees.py
Class Name:
Method Name: make_forest
Project Name: lmcinnes/pynndescent
Commit Name: 05184ef3cb12c053d332cb6945fb36e78bdb0038
Time: 2019-09-18
Author: leland.mcinnes@gmail.com
File Name: pynndescent/rp_trees.py
Class Name:
Method Name: make_forest
Project Name: EpistasisLab/scikit-rebate
Commit Name: 971719830d589eba66434ddabfc62c1a689be677
Time: 2017-04-07
Author: weixuanf@upenn.edu
File Name: skrebate/relieff.py
Class Name: ReliefF
Method Name: _run_algorithm