-
Notifications
You must be signed in to change notification settings - Fork 276
Open
Description
Thank You for hyperopt-sklearn it is a great package.
Recently, even this basic code fails:
from hpsklearn import HyperoptEstimator, any_classifier, any_preprocessing
from hyperopt import tpe
estim = HyperoptEstimator(classifier=any_classifier('my_clf'),
preprocessing=any_preprocessing('my_pre'),
algo=tpe.suggest,
max_evals=100,
trial_timeout=120)
print(estim)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\base.py", line 260, in __repr__
repr_ = pp.pformat(self)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\Lib\pprint.py", line 144, in pformat
self._format(object, sio, 0, 0, {}, 0)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\Lib\pprint.py", line 161, in _format
rep = self._repr(object, context, level)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\Lib\pprint.py", line 393, in _repr
self._depth, level)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\utils\_pprint.py", line 181, in format
changed_only=self._changed_only)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\utils\_pprint.py", line 425, in _safe_repr
params = _changed_params(object)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\utils\_pprint.py", line 91, in _changed_params
params = estimator.get_params(deep=False)
File "C:\Users\ncshr\AppData\Local\Programs\Python\Python37-32\lib\site-packages\sklearn\base.py", line 195, in get_params
value = getattr(self, key)
AttributeError: 'hyperopt_estimator' object has no attribute 'classifier'
Windows 10 machine, Python 3.7.1, hpsklearn 0.1.0, networkx-2.5
Please suggest
Metadata
Metadata
Assignees
Labels
No labels