Skip to content

Commit 0e84267

Browse files
committed
remove one instance
1 parent ec4d729 commit 0e84267

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mlinsights/mlmodel/piecewise_estimator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ def fit(self, X, y, sample_weight=None):
259259
rnd = None
260260

261261
self.estimators_ = \
262-
Parallel(n_jobs=self.n_jobs, verbose=verbose,
263-
prefer='threads')(
262+
Parallel(n_jobs=self.n_jobs, verbose=verbose, prefer='threads')(
264263
delayed(_fit_piecewise_estimator)(
265264
i, estimators[i], X, y, sample_weight, association, nb_classes, rnd)
266265
for i in loop)
@@ -287,7 +286,7 @@ def _apply_predict_method(self, X, method, parallelized, dimout):
287286

288287
association = self.transform_bins(X)
289288

290-
indpred = Parallel(n_jobs=self.n_jobs, **_joblib_parallel_args(prefer='threads'))(
289+
indpred = Parallel(n_jobs=self.n_jobs, prefer='threads')(
291290
delayed(parallelized)(i, model, X, association)
292291
for i, model in enumerate(self.estimators_))
293292

0 commit comments

Comments
 (0)