Open Vis03al opened 1 year ago
Traceback (most recent call last):
File "/home/alvynabranches/aichess/lunar_lander.py", line 32, in
Same error for DQN as well as DDQN
which version of gym are you using?
Find your env.reset()
and change it to: env.reset()[0]
Why? Look here:
(method) def reset(
*,
seed: int | None = None,
options: dict[str, Any] | None = None
) -> tuple[Any, dict[str, Any]]
Another thing: If you are using gymnasium instead of gym, remember that done
has been replaced with terminated, truncated
. Addjust your functions accordingly.
In "main_torch_dqn_lunar_lander_2020.py" file
--> self.state_memory[index] = state It says "ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 1"
When i alter few things to get rid off this error i am getting into another error ,could you help me out