Views
No views yet
KraTUZen/LunarLanderLunarLander-Kratuzen1from huggingface_sb3 import load_from_hub
2from stable_baselines3 import PPO
3import gymnasium as gym
4
5# Load model from Hugging Face Hub
6model = load_from_hub(
7 repo_id="KraTUZen/LunarLander",
8 filename="LunarLander-Kratuzen.zip"
9)
10
11# Create environment
12env = gym.make("LunarLander-v2")
13
14# Run a quick evaluation loop
15obs, info = env.reset()
16for _ in range(20):
17 action = env.action_space.sample()
18 obs, reward, terminated, truncated, info = env.step(action)
19 if terminated or truncated:
20 obs, info = env.reset()
21env.close()| Parameter | Value |
|---|---|
| Algorithm | PPO |
| Policy | MlpPolicy |
| Timesteps | 1,000,000 |
| n_steps | 1024 |
| batch_size | 64 |
| gamma | 0.999 |
| gae_lambda | 0.98 |
| ent_coef | 0.01 |