Downloads · 30 days
0
ohyou/lunar-lander-dqn
lunar-lander-dqn is a reinforcement learning model from ohyou. 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 gymnasium.
Downloads · 30 days
0
Access
Public
Updated Sep 5, 2026
Repo size
423 KB
Likes
0
Public
Click a slice to open those files.
.gif382 KB · 88%
From the Hugging Face model README

This repository contains trained Deep Q-Network (DQN) model weights for OpenAI Gym / Gymnasium LunarLander-v3.
dqn_lunar_lander_best.npz: Trained model weights dictionary (W1, b1, W2, b2, W3, b3).luna_lander_dqn.py: Python DQNAgent implementation.from luna_lander_dqn import DQNAgent
import gymnasium as gym
env = gym.make("LunarLander-v3")
agent = DQNAgent()
agent.load_weights("dqn_lunar_lander_best.npz")
state, _ = env.reset()
done = False
total_reward = 0
while not done:
action = agent.act(state, evaluate=True)
state, reward, terminated, truncated, _ = env.step(action)
total_reward += reward
done = terminated or truncated
print(f"Final Evaluation Reward: {total_reward}")