admin管理员组文章数量:1410717
I have a custom Gymnasium environment, RLToy-v0
from the library MDP Playground. It separates out the transition function and reward function from the step function and calls them individually inside step()
.
I know that using Gymnasium's AsyncVectorEnv
, and initialising a set of vectorised environments as envs
, we can call envs.step()
and envs.observation_space.sample()
to run the respective individual functions of the environments in parallel. However, I want to run only the reward function, named reward_function()
, of the vectorised environments in parallel. How would one go about doing that for the separated out reward function of my custom environment? Is there an easy way to just call envs.reward_function()
?
本文标签:
版权声明:本文标题:python - In Gymnasium, how can one run a vector environment's function in parallel similar to how step() can be run in p 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745011683a2637591.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论