Extracting state-space from Atari games at specific frames and hard coding agents?

随声附和 提交于 2020-12-26 04:03:28

问题


I am trying to extract the state space from Amidar in order to hard code an agent for some specific purposes. For example, I want the agent to go down whenever an enemy is 2 cells away or up until they hit a wall then go down again. However, I'm not quite sure how to extract the state space at a specific frame, or in general for that instance, and how to go about interpreting the output.

I have tried env.observation_space but that just returns the frame size (i.e: Box(250,160,3)). Anyone have an idea of how to go about doing this?

Thank you.

来源:https://stackoverflow.com/questions/58981040/extracting-state-space-from-atari-games-at-specific-frames-and-hard-coding-agent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!