-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行hypergbm/examples/01.quick-start.ipynb时,trial会报错cannot pickle '_hashlib.HASH' object #104
Comments
感谢您的反馈! 我们已经在最新代码中修复这个问题,稍后会发布。 目前你可以暂时将HyperGBM和Hypernets升级到最新代码以避免在运行时出现‘cannot pickle '_hashlib.HASH' object’ 这样的错误。 例如:
|
安装了上面的新版本后。在jupyter里运行还是有问题。 12-10 21:54:34 W hypernets.t.cache.py 200 - AttributeError: ['mean radius', 'mean texture', 'mean perimeter', 'mean area', 'mean smoothness', 'mean compactness', 'mean concavity', 'mean concave points', 'mean symmetry', 'mean fractal dimension', 'radius error', 'texture error', 'perimeter error', 'area error', 'smoothness error', 'compactness error', 'concavity error', 'concave points error', 'symmetry error', 'fractal dimension error', 'worst radius', 'worst texture', 'worst perimeter', 'worst area', 'worst smoothness', 'worst compactness', 'worst concavity', 'worst concave points', 'worst symmetry', 'worst fractal dimension']: 'FloatOutputImputer' object has no attribute '_fit_dtype' |
烦请提供一下您的运行环境及HyperGBM安装过程,谢谢 |
System information
Describe the current behavior
运行到下面这行代码时,
experiment = make_experiment(train_data.copy(), target='target', reward_metric='precision', pos_label=1,random_state=1234, max_trials=20)
会报错
Traceback (most recent call last):
File "/home/user1/anaconda3/envs/automl1/lib/python3.8/site-packages/hypernets/dispatchers/in_process_dispatcher.py", line 95, in dispatch
trial = hyper_model._run_trial(space_sample, trial_no, X, y, X_eval, y_eval, X_test, cv, num_folds, model_file,
File "/home/user1/anaconda3/envs/automl1/lib/python3.8/site-packages/hypernets/model/hyper_model.py", line 111, in _run_trial
estimator.save(model_file)
File "/home/user1/anaconda3/envs/automl1/lib/python3.8/site-packages/hypergbm/hyper_gbm.py", line 645, in save
pickle.dump(self, output, protocol=pickle.HIGHEST_PROTOCOL)
TypeError: cannot pickle '_hashlib.HASH' object
只有第一次trial能正常运行,之后的都会出现这个报错。但如果不用jupyter,而是用python运行时,上面内容就不会输出。我不清楚这个报错是否会对精度产生影响呢?
The text was updated successfully, but these errors were encountered: