Skip to content

Commit

Permalink
Merge pull request #56 from richford/enh/use-joblib-parallel
Browse files Browse the repository at this point in the history
ENH: Use joblib.Parallel instead of custom groupyr._ProgressParallel
  • Loading branch information
richford committed Oct 27, 2020
2 parents 2ba3153 + 37156e9 commit 3403cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions afqinsight/cross_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
import os
import pickle

from groupyr.utils import _ProgressParallel
from joblib import delayed
from joblib import delayed, Parallel
from sklearn.base import clone, is_classifier
from sklearn.metrics._scorer import _check_multimetric_scoring
from sklearn.model_selection._split import check_cv
Expand Down Expand Up @@ -381,9 +380,7 @@ def cross_validate_checkpoint(

# We clone the estimator to make sure that all the folds are
# independent, and that it is pickle-able.
parallel = _ProgressParallel(
n_jobs=n_jobs, verbose=verbose, pre_dispatch=pre_dispatch
)
parallel = Parallel(n_jobs=n_jobs, verbose=verbose, pre_dispatch=pre_dispatch)
scores = parallel(
delayed(_fit_and_score_ckpt)(
workdir=workdir,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python_requires = >=3.6
install_requires =
bokeh==1.1.0
deepdish==0.3.6
groupyr==0.1.5
groupyr==0.1.7
ipywidgets==7.5.1
matplotlib==3.3.0
numpy==1.19.1
Expand Down

0 comments on commit 3403cce

Please sign in to comment.