Q-Learning Agent playing Taxi-v3 ๐Ÿš•โ›„

This is a trained model of a Q-Learning agent playing Taxi-v3. This model was trained as part of Unit 2 of the Hugging Face Deep Reinforcement Learning Course.

๐Ÿ† Evaluation & Certification Results

  • Environment: Taxi-v3 (Taxi-v3)
  • Mean Reward: 7.56 +/- 2.71
  • Certification Score (mean_reward - std_reward): 4.85
  • Certification Status: Passed โœ…

๐ŸŽฎ Video Replay

Replay Video

๐Ÿ“ฆ Usage

To run this model with Gymnasium:

import pickle
import gymnasium as gym
from huggingface_hub import hf_hub_download

# 1. Download model from Hugging Face Hub
model_path = hf_hub_download(repo_id="arjun80892/q-Taxi-v3", filename="q-learning.pkl")

with open(model_path, "rb") as f:
    model = pickle.load(f)

# 2. Re-create the environment
env = gym.make(model["env_id"])
state, info = env.reset()

for _ in range(model.get("max_steps", 99)):
    action = model["qtable"][state].argmax()
    state, reward, terminated, truncated, info = env.step(action)
    if terminated or truncated:
        break

env.close()

โš™๏ธ Hyperparameters

  • Training Episodes: 30000
  • Learning Rate (ฮฑ): 0.7
  • Discount Factor (ฮณ): 0.95
  • Max Epsilon: 1.0
  • Min Epsilon: 0.05
  • Epsilon Decay Rate: 0.005
  • Max Steps / Episode: 99
Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Evaluation results