Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1104 from RobertArbon/sklearn-0.2-fix
Browse files Browse the repository at this point in the history
Modified import of ParameterGrid for compatibility with sklearn 0.20 and below.
  • Loading branch information
cxhernandez committed Oct 7, 2018
2 parents 6051f33 + 4ff9fd1 commit 8c901a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Improvements
- Changed zippy_maker code so that ```Featurizer.describe_features``` will
return ordered unique lists to make reading and subselecting features easier.
- ``SASAFeaturizer`` now really supports the ``describe_features`` method (gh-913).

- Made ``ParameterGrid`` import compatible with ``scikit-learn`` version 0.20 and below.

v3.8 (April 26, 2017)
---------------------
Expand Down
6 changes: 5 additions & 1 deletion msmbuilder/utils/param_sweep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from __future__ import print_function, division, absolute_import
from sklearn import clone
from sklearn.grid_search import ParameterGrid
try:
from sklearn.model_selection import ParameterGrid
except ImportError:
from sklearn.grid_search import ParameterGrid

from sklearn.externals.joblib import Parallel, delayed

__all__ = ['param_sweep']
Expand Down

0 comments on commit 8c901a3

Please sign in to comment.