Closed KeeratKG closed 3 years ago
This is because of the key "episode" in info
dictionary returned by the environment. This key is used to track episode lengths and rewards. Try changing that key to something else and things should work.
Marking as a bug because code should warn about this. We also need to check if SB3 has the same issue.
Yes, I changed the key "episode" to "episode_number" and it worked.
Thanks!
This is because of the key "episode" in
info
dictionary returned by the environment. This key is used to track episode lengths and rewards. Try changing that key to something else and things should work.Marking as a bug because code should warn about this. We also need to check if SB3 has the same issue.
this is still not fixed in SB3 btw
Hi! I have made an environment for drug distribution amongst a few locations following the openai library, and have checked it successfully using
check_env(env, warn=True)
.Describe the bug On deploying the ACKTR algorithm on my environment, I keep getting the error
TypeError: object of type 'int' has no len()
at the end of the training process due to which the model is unable to be trained finally and then further, tested.Code example The following code should help you to reproduce the error:
This is the output and the error I get:
System Info
How can I get around this? I am unable to understand what part of my code is messing with the
self.ep_info_buf
inacktr.py
.Thanks.