In a reinforcement learning scenario, the environment models the dynamics with which the agent interacts. The environment:
Receives actions from the agent
Outputs observations resulting from the dynamic behavior of the environment model
Generates a reward measuring how well the action contributes to achieving the task
You can create predefined and custom environments in MATLAB. For more information, see Create MATLAB Environments for Reinforcement Learning.
|Create a predefined reinforcement learning environment|
|Specify custom reinforcement learning environment dynamics using functions|
|Create custom reinforcement learning environment template|
|Create Markov decision process environment for reinforcement learning|
|Create Markov decision process model|
|Create a two-dimensional grid world for reinforcement learning|
|Validate custom reinforcement learning environment|
|Create discrete action or observation data specifications for reinforcement learning environments|
|Create continuous action or observation data specifications for reinforcement learning environments|
|Obtain action data specifications from reinforcement learning environment or agent|
|Obtain observation data specifications from reinforcement learning environment or agent|
Model environment dynamics using a MATLAB object that interacts with the agent, generating rewards and observations in response to agent actions.
Create a reward signal that measures how successful the agent is at achieving its goal.
You can train agents in predefined MATLAB control system environments for which the actions, observations, rewards, and dynamics are already defined.
You can train agents in predefined MATLAB grid world environments for which the actions, observations, and rewards are already defined.
You can create custom MATLAB grid world environments by defining your own size, rewards and obstacles.
Create a reinforcement learning environment by supplying custom dynamic functions.
You can define a custom reinforcement learning environment by creating and modifying a template environment object.