8000 Removed prange and added note · Micky774/scikit-learn@cc52631 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit cc52631

Browse files
committed
Removed prange and added note
1 parent 93e56b1 commit cc52631

File tree

4 files changed

+1969
-2
lines changed

4 files changed

+1969
-2
lines changed

sklearn/cluster/_hdbscan/_reachability.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ cimport numpy as cnp
1010
import numpy as np
1111
from scipy.sparse import issparse
1212
from cython cimport floating, integral
13-
from cython.parallel cimport prange
1413
from libc.math cimport isfinite, INFINITY
1514

1615
cnp.import_array()
@@ -111,7 +110,9 @@ def _dense_mutual_reachability_graph(
111110
)
112111

113112
with nogil:
114-
for i in prange(n_samples):
113+
# TODO: Update w/ prange with thread count based on
114+
# _openmp_effective_n_threads
115+
for i in range(n_samples):
115116
for j in range(n_samples):
116117
mutual_reachibility_distance = max(
117118
core_distances[i],

0 commit comments

Comments
 (0)
0