Downloads · 30 days
2
5% of all-time downloads
white100big/LunarLander-v3-DQN
LunarLander-v3-DQN is a reinforcement learning model from white100big. 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 reinforcement-learning.
This repository contains a fully trained Double DQN with Dueling Architecture agent for the LunarLander-v3 environment in Gymnasium.
Downloads · 30 days
2
5% of all-time downloads
All-time downloads
41
Public
Repo size
1.6 MB
Likes
0
Public
Click a slice to open those files.
.png1 MB · 47%
From the Hugging Face model README
This repository contains a fully trained Double DQN with Dueling Architecture agent for the LunarLander-v3 environment in Gymnasium.

Result: Successfully solved
LunarLander-v3with a 100-episode moving average reward of 259.09 (exceeding the standard 200.0 threshold) and a 100% landing success rate upon evaluation.
| Parameter | Value |
|---|---|
| Total Episodes | 1,000 |
| Epsilon Schedule | 1.0 (100%) → 0.05 (5%) Exponential Decay |
| Discount Factor ($\gamma$) | 0.99 |
| Replay Buffer Size | 100,000 |
| Batch Size | 64 |
| Loss Function | Smooth L1 (Huber Loss) |
| Target Network Update | Soft Update ($ au = 0.005$) |
| State Dimension | 8 |
| Action Space | Discrete(4) |
pip install torch "gymnasium[box2d]" swig
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="white100big/LunarLander-v3-DQN",
filename="best_lunarlander_dqn.pth"
)
print("Downloaded to:", model_path)
import gymnasium as gym
from dqn_agent import DQNAgent
env = gym.make("LunarLander-v3", render_mode="human")
agent = DQNAgent(state_size=8, action_size=4)
agent.load("best_lunarlander_dqn.pth")
state, _ = env.reset()
done = False
total_reward = 0
while not done:
action = agent.act(state, eps=0.0) # Pure exploitation
state, reward, terminated, truncated, _ = env.step(action)
done = terminated or truncated
total_reward += reward
print(f"Final Landing Score: {total_reward:.2f}")
env.close()