File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 21
21
from sklearn .utils import check_array , check_random_state
22
22
from sklearn .utils ._arpack import _init_arpack_v0
23
23
from sklearn .utils ._param_validation import Interval , StrOptions , validate_params
24
- from sklearn .utils .extmath import stable_cumsum
25
24
from sklearn .utils .validation import FLOAT_DTYPES , check_is_fitted , validate_data
26
25
27
26
@@ -351,7 +350,7 @@ def _locally_linear_embedding(
351
350
# this is the size of the largest set of eigenvalues
352
351
# such that Sum[v; v in set]/Sum[v; v not in set] < eta
353
352
s_range = np .zeros (N , dtype = int )
354
- evals_cumsum = stable_cumsum (evals , 1 )
353
+ evals_cumsum = np . cumsum (evals , 1 )
355
354
eta_range = evals_cumsum [:, - 1 :] / evals_cumsum [:, :- 1 ] - 1
356
355
for i in range (N ):
357
356
s_range [i ] = np .searchsorted (eta_range [i , ::- 1 ], eta )
You can’t perform that action at this time.
0 commit comments