Downloads · 30 days
0
kirubel1738/frozenlake-q-learning01
frozenlake-q-learning01 is a reinforcement learning model from kirubel1738. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. It is set up for numpy. The card lists the license as mit.
This repository contains a trained Q-Learning agent for the Gymnasium environment FrozenLake-v1.
Downloads · 30 days
0
Access
Public
Updated Feb 24, 2026
Repo size
640 B
Likes
0
Public
Click a slice to open those files.
.gif28.8 KB · 88%
From the Hugging Face model README
This repository contains a trained Q-Learning agent for the Gymnasium environment FrozenLake-v1.
FrozenLake is a small Markov Decision Process (MDP) where the agent must reach a goal while avoiding holes.
This model uses Tabular Q-Learning, a model-free off-policy reinforcement learning algorithm.
Update rule:
Q(s,a) ← Q(s,a) + α [ r + γ max_a' Q(s',a') − Q(s,a) ]
Where:
Because the environment is discrete and small, Q-values are stored in a Q-table of shape (16 × 4).
The agent learns to maximize expected long-term reward despite stochastic transitions.
Training reward was tracked across episodes.
The agent successfully learns an optimal navigation policy to reach the goal.
Below is the trained agent interacting with the environment:

frozenlake_q_table.npy → Trained Q-tablefrozenlake_trained_agent.gif → Agent demonstrationThis project demonstrates:
It serves as a foundational reinforcement learning example.