Policy (reinforcement learning)
The agent's rule for choosing actions in each state.
A policy gives the probability of taking action in state ; a deterministic policy picks one action per state. Value-based methods derive the policy by acting greedily on learned values; policy-gradient methods (REINFORCE, actor-critic, PPO) learn the policy directly as a parameterised function, often a neural network.
See it in action
- Markov decision processes and Bellman equationsThe language of reinforcement learning: states, actions, rewards, returns, policies and value functions.
- Policy iterationPlan with a known model: evaluate a policy, make it greedy, repeat until optimal.
- Policy gradients: REINFORCEOptimise the policy directly by gradient ascent on expected return, using the score-function trick.
- Actor-critic methods (A2C)Combine a policy (actor) with a learned value function (critic) for lower-variance policy gradients.