Skip to content

Commit 29a8b48

Browse files
import all_estimators from sklearn.utils
1 parent 05c711b commit 29a8b48

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

GPopt/GPOpt.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
import shelve
1212
from collections import namedtuple
1313
from functools import partial
14-
from sklearn.utils.discovery import all_estimators
14+
try:
15+
from sklearn.utils.discovery import all_estimators
16+
except:
17+
from sklearn.utils import all_estimators
1518
from sklearn.base import RegressorMixin
1619
from sklearn.gaussian_process import GaussianProcessRegressor
1720
from sklearn.ensemble import RandomForestRegressor

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from codecs import open
44
from os import path
55

6-
__version__ = "0.6.0"
6+
__version__ = "0.6.1"
77

88
subprocess.call("pip install -r requirements.txt", shell=True)
99

0 commit comments

Comments
 (0)