Cliff-walking grid comparing a SARSA path and a Q-learning path
Machine Learning, Reinforcement Learning

SARSA Algorithm Explained: On-Policy Reinforcement Learning

Learn the SARSA algorithm: the on-policy update rule, a worked numerical example, a complete Python GridWorld implementation, and how SARSA differs from Q-learning on cliff walking.