Introduction to Reinforcement Learning (Coding SARSA) — Part 4

Adesh Gautam
Jul 23, 2018 · 3 min read

We saw in the previous article about how to solve the FrozenLake environment available in OpenAI gym toolkit using Q-learning. In this article, we’ll solve it using the SARSA algorithm.

SARSA

SARSA

SARSA vs Q-learning

SARSA Algorithm

Solving FrozenLake

                         (State, Action)
                 (State, Action, Reward, State1)
            (State, Action, Reward, State1, Action1)
SARSA Q-table update equation
Agent in action

This story is published in The Startup, Medium’s largest entrepreneurship publication followed by 348,974+ people.

Subscribe to receive our top stories here.

The Startup

Get smarter at building your thing. Join The Startup’s +750K followers.

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +750K followers.

Adesh Gautam

Written by

Machine/Deep Learning, Amateur Photographer

The Startup

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +750K followers.