Downloads · 30 days
0
berkde/sarsa-lambda-WindyGridworld-v0
sarsa-lambda-WindyGridworld-v0 is a reinforcement learning model from berkde. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product.
This is a trained model of a Q-Learning agent playing WindyCliffEnv-v0-8x8-noSlippery.
Downloads · 30 days
0
Access
Public
Updated Nov 17, 2025
Repo size
2.6 KB
Likes
0
Public
Click a slice to open those files.
.pkl2.6 KB · 47%
From the Hugging Face model README
This is a trained model of a Q-Learning agent playing WindyCliffEnv-v0-8x8-noSlippery.
from huggingface_hub import hf_hub_download
import pickle, gymnasium as gym, numpy as np
# Download Q-table
pkl_path = hf_hub_download(repo_id="berkde/sarsa-lambda-WindyGridworld-v0", filename="q-learning.pkl")
with open(pkl_path, "rb") as f:
model = pickle.load(f)
env = gym.make(
model["env_id"],
map_name=model.get("map_name"),
is_slippery=model.get("slippery", True),
render_mode="human",
)
state, _ = env.reset()
for _ in range(model["max_steps"]):
action = np.argmax(model["qtable"][state])
state, reward, terminated, truncated, _ = env.step(action)
if terminated or truncated:
break