-
Notifications
You must be signed in to change notification settings - Fork 41
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
执行超参数搜索时KeyError报错 #62
Comments
请问您的 recbole 版本是?我在 recbole 1.0.1 和 1.1.1 都进行了测试,似乎没有复现您说的问题。 |
Name Version Build Channel_libgcc_mutex 0.1 main 您好,是1.1.1版本的 condalist如上 |
看起来像是hyperopt的问题 |
您好,可以提供一下您运行的hyperopt的版本吗 |
您好!目前初步判定是我们对 RecBole 1.1.1 版本适配产生的 bug。 bug 产生原因: 但是 RecBole-GNN 的超参调优的目标函数并没有返回 RecBole-GNN/recbole_gnn/quick_start.py Lines 82 to 87 in 77d76b9
您如果着急的话可以先给 return {
'model': config['model'],
# ... ...
} 我们也将马上修复并进行测试,感谢找到这个 bug!! |
好的,非常感谢! |
ERROR:hyperopt.fmin:job exception: 'model'
0%| | 0/12 [1:01:04<?, ?trial/s, best loss=?]
Traceback (most recent call last):
File "run_hyper.py", line 26, in
main()
File "run_hyper.py", line 18, in main
hp.run()
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/recbole/trainer/hyper_tuning.py", line 411, in run
fmin(
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/hyperopt/fmin.py", line 553, in fmin
rval.exhaust()
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/hyperopt/fmin.py", line 356, in exhaust
self.run(self.max_evals - n_done, block_until_done=self.asynchronous)
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/hyperopt/fmin.py", line 292, in run
self.serial_evaluate()
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/hyperopt/fmin.py", line 170, in serial_evaluate
result = self.domain.evaluate(spec, ctrl)
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/hyperopt/base.py", line 907, in evaluate
rval = self.fn(pyll_rval)
File "/opt/conda/envs/siton_env/lib/python3.8/site-packages/recbole/trainer/hyper_tuning.py", line 349, in trial
result_dict["model"],
KeyError: 'model'
RT,报错信息如上,跑的模型是Hmlet,输入指令如下:
python run_hyper.py --model='HMLET' --dataset='ml-1m' --config_files='ml-1m.yaml' --params_file=Hmlet.hyper
The text was updated successfully, but these errors were encountered: