Hi,
I followed the example in baseline and built up an agent as "class MyAgent(AgentWithConverter):". It works fine in the baseline for train and evaluation.
But when I make it as a submission and run "check_your_submission.py", it gives me an error "AttributeError: 'ActionSpace_l2rpn_wcci_2020' object has no attribute 'convert_obs'".
I am wondering that If I should only use "class MyAgent(BaseAgent):" to build up my agent?
Thanks,
Hello,
I am not entirely sure from where the problem could come. Are you sure you can reload your baseline once saved? Because the make_agent function does exactly that 🤔
Are you using the same grid2op version as this competition?
Benjamin
Posted by: BDonnot @ May 26, 2020, 5:22 p.m.Hi Benjemin:
I am not loading the baseline, I just follow its format to create "Myagent" and "make_agent".
And Myagent inherits the AgentwithConverter.
It shows me
'''
File "/venv_grid2op/lib/python3.6/site-packages/grid2op/Runner/Runner.py", line 647, in _run_one_episode
act = agent.act(obs, reward, done)
File "/venv_grid2op/lib/python3.6/site-packages/grid2op/Agent/AgentWithConverter.py", line 206, in act
transformed_observation = self.convert_obs(observation)
File "/venv_grid2op/lib/python3.6/site-packages/grid2op/Agent/AgentWithConverter.py", line 165, in convert_obs
return self.action_space.convert_obs(observation)
AttributeError: 'ActionSpace_l2rpn_wcci_2020' object has no attribute 'convert_obs'
'''
I am using grid2op v0.9.2 BTW.
Can you post an issue about that in the grid2op github? I will investigate this problem. Thanks
Posted by: BDonnot @ May 26, 2020, 6:03 p.m.Sure, Thanks.
Posted by: djmax008 @ May 26, 2020, 6:04 p.m.