Downloads · 30 days
0
jongchullee/lunar-lander-dueling-dqn
lunar-lander-dueling-dqn is a reinforcement learning model from jongchullee. 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 Dueling Double-DQN agent capable of performing perfect, smooth, and robust landings in the Gymnasium LunarLander-v3 environment with an evaluation score of 289.2.
Downloads · 30 days
0
Access
Public
Updated Aug 20, 2026
Repo size
572 KB
Likes
0
Public
Click a slice to open those files.
.pth572 KB · 98%
From the Hugging Face model README
This is a trained Dueling Double-DQN agent capable of performing perfect, smooth, and robust landings in the Gymnasium LunarLander-v3 environment with an evaluation score of 289.2.
import torch
import gymnasium as gym
from dqn_agent import DQNAgent
# 1. Initialize environment
env = gym.make("LunarLander-v3", render_mode="human")
state, _ = env.reset()
# 2. Load Agent
agent = DQNAgent(state_dim=8, action_dim=4)
agent.load("best_lunar_lander_dqn.pth")
# 3. Simulate
total_reward = 0
done = False
while not done:
action, _ = agent.select_action(state, evaluate=True)
next_state, reward, terminated, truncated, _ = env.step(action)
done = terminated or truncated
state = next_state
total_reward += reward
print(f"Final Landing Reward: {total_reward:.2f}")
env.close()