Shivesh Kumar Pandey

Results 5 comments of Shivesh Kumar Pandey

guys i am getting same issue , Please help me out.

Getting ValueError: too many values to unpack (expected 4)

> there is another issue with the env.step() method which has also been updated In new version of gymnasium env.step() return 5 paramters comprative to V21

> This is the necessary update as Gym env.reset returns a dict with the array and "info" as well, we need to pull the array out: The old code has:...

> same I think I found the solution: state = env.reset()[0] state, reward, terminated, _, info = env.step(action) state = environment.reset()[0] In many places, you will see a reset code;...