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

Tuner failed when updating searchSpace #193

Closed
Crysple opened this issue Oct 10, 2018 · 3 comments
Closed

Tuner failed when updating searchSpace #193

Crysple opened this issue Oct 10, 2018 · 3 comments
Assignees
Labels

Comments

@Crysple
Copy link
Contributor

Crysple commented Oct 10, 2018

  • Start a new experiment using TPE or Evolution
  • then update the searchsapce
  • tuner will failed when it receive trial result

[2018-10-10 17:06:49] ERROR (nni.main) list index out of range
Traceback (most recent call last):
File "/mnt/d/git/nni/src/sdk/pynni/nni/main.py", line 142, in main
dispatcher.run()
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher_base.py", line 42, in run
while self.handle_request():
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher_base.py", line 75, in handle_request
return command_handlerscommand
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher.py", line 131, in handle_report_metric_data
self.tuner.receive_trial_result(id_, trial_params[id], value)
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 238, in receive_trial_result
json2vals(self.json, vals, out_y)
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 127, in json2vals
json2vals(in_x[key], vals[key], out_y, name + '[%s]' % str(key))
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 123, in json2vals
json2vals(in_x[VALUE][index], vals[VALUE],
IndexError: list index out of range
[2018-10-10 17:06:49] ERROR (nni.main) list index out of range
Traceback (most recent call last):
File "/mnt/d/git/nni/src/sdk/pynni/nni/main.py", line 155, in
main()
File "/mnt/d/git/nni/src/sdk/pynni/nni/main.py", line 142, in main
dispatcher.run()
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher_base.py", line 42, in run
while self.handle_request():
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher_base.py", line 75, in handle_request
return command_handlerscommand
File "/mnt/d/git/nni/src/sdk/pynni/nni/msg_dispatcher.py", line 131, in handle_report_metric_data
self.tuner.receive_trial_result(id
, trial_params[id], value)
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 238, in receive_trial_result
json2vals(self.json, vals, out_y)
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 127, in json2vals
json2vals(in_x[key], vals[key], out_y, name + '[%s]' % str(key))
File "/mnt/d/git/nni/src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py", line 123, in json2vals
json2vals(in_x[VALUE][_index], vals[VALUE],
IndexError: list index out of range

@QuanluZhang
Copy link
Contributor

this error is from nni master branch, while v0.2 correctly works. so the error might be introduced by muti-phase support. could @xuehui1991 and @chicm-ms take a look?

@chicm-ms
Copy link
Contributor

I will investigate it.

@chicm-ms chicm-ms self-assigned this Oct 11, 2018
@chicm-ms
Copy link
Contributor

chicm-ms commented Dec 4, 2018

Fixed, verified.

@chicm-ms chicm-ms closed this as completed Dec 4, 2018
suiguoxin pushed a commit that referenced this issue Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants