Keras Reinforcement Learning Projects
by Giuseppe Ciaburro, Sudharsan Ravichandiran, Suriyadeepan Ramamoorthy
OpenAI Gym methods
OpenAI Gym provides the Env class, which encapsulates the environment and its possible internal dynamics. The class has different methods and attributes to implement to create a new environment. The most important methods are called reset, step, and render.
The reset method has the task of resetting the environment, initializing it to the initial state. Within the reset method, the definitions of the elements that make up the environment must be contained, in this case the definition of the mechanical arm, of the object to be grasped and its support. The step method has the task of moving the environment forward by one step. It requires the action to be performed as input and returns the new observation to the agent. Within ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access