Skip to content
Back to course

16.1 Agent and Environment

Reinforcement Learning (RL) is built around two pieces: an agent that makes decisions, and an environment the agent lives in. At each step the agent observes the current state of the environment, takes an action, and the environment responds with a new state and a reward signal. This loop repeats over and over.

DataModelPredictAdjustrepeat & improve
The agent–environment interaction loop: observe state, act, receive reward and next state.

Think of a taxi driver in Addis Ababa as the agent and the city's streets, traffic, and passengers as the environment. The driver sees the current situation (state), decides where to turn (action), and earns a fare or wastes fuel (reward) depending on the outcome.

Scenario

You are modeling a thermostat that controls room temperature. Which part is the 'environment'?

Check your understanding

1/4 · 40 XP

In RL, what does the agent receive from the environment after each action?