Downloads · 30 days
0
anas101alaa/td3_lunar
td3_lunar is a reinforcement learning model from anas101alaa. 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 stable-baselines3.
This is a trained TD3 (Twin Delayed Deep Deterministic Policy Gradient) agent for the LunarLanderContinuous-v2 environment.
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2025
Repo size
1 MB
Likes
0
Public
Click a slice to open those files.
.pth1 MB · 100%
From the Hugging Face model README
This is a trained TD3 (Twin Delayed Deep Deterministic Policy Gradient) agent for the LunarLanderContinuous-v2 environment.
LunarLanderContinuous-v2import torch
import gymnasium as gym
# Load the actor model
actor = YourActorClass() # Define your actor architecture
actor.load_state_dict(torch.load('actor.pth'))
actor.eval()
# Use the model
env = gym.make('LunarLanderContinuous-v2')
state, info = env.reset()
done = False
while not done:
action = actor(torch.FloatTensor(state)).detach().numpy()
state, reward, terminated, truncated, info = env.step(action)
done = terminated or truncated
actor.pth: Actor network weightscritic_1.pth: First critic network weightscritic_2.pth: Second critic network weightsconfig.json: Model configuration