All lessons in Machine Learning Engineering: Reliable Predictive Models

Rewards, Bellman Updates, and Exploration

Separate policy evaluation from supervised prediction and calculate a temporal-difference update.

35 minutes · Members lesson · preview

What you will learn

  • Explain why the late-delivery classifier is a supervised predictor and not a reinforcement-learning agent, naming the assumptions that change when actions alter future data.
  • Solve the Bellman expectation equations for a two-state Markov decision process under a fixed policy by hand.
  • Compute temporal-difference and Q-learning updates and an epsilon-greedy action probability from supplied numbers.

Throughout this course the carrier's model has answered a single question at dispatch: given the features on hand, how likely is this parcel to arrive late? That is supervised prediction. Whether the model said 0.1 or 0.9, the parcel's true outcome was recorded anyway, and we scored the model against it afterwards. Reinforcement learning (RL) addresses a different situation: the dispatcher must choose an action, the choice changes what the depot looks like next, and the only feedback is a numeric reward that may arrive several steps later. This optional lesson stays small and hand-computable. It uses no workbook commands, because the tabular workbook does not implement any RL method; a short optional simulation of your own is suggested at the end instead.

Choose another lesson