Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Q-Learning and SARSA are fundamental, model-free reinforcement learning algorithms. While Q-Learning is an off-policy algorithm that learns the value of the optimal policy independently of the agent's actions, SARSA is an on-policy algorithm that learns the value of the policy currently being executed.
An agent lives in an environment. At every time step it observes a state s, picks an action a, then receives a reward r and a next state s'.
Its goal is to learn a policy — a way to choose actions — that maximizes the long-run sum of rewards.
Below is a tiny world. The agent starts on the bottom-left and must reach the goal (green) on the bottom-right. The red strip is a cliff: stepping on it costs -100 and sends the agent back to start. Every other step costs -1.