Skip to content
Back to course

16.3 Policies

A policy is the agent's strategy: a rule that maps each state to an action (or to probabilities over actions). A deterministic policy always picks the same action in a given state, while a stochastic policy chooses actions with some randomness. The aim of RL is to find an optimal policy that maximizes expected long-term reward.

A farmer's planting policy is a good analogy: 'if the rains have started and soil is moist, plant teff; if it's still dry, wait.' That is a mapping from the state of the land to the action to take.

Scenario

A food-delivery app's routing agent always takes the single route it learned first, never trying others. What problem is this?

Check your understanding

1/4 · 40 XP

What does a policy map?