Downloads · 30 days
9
9% of all-time downloads
danieladejumo/ppo-mountan_car_continuous
ppo-mountan_car_continuous is a reinforcement learning model from danieladejumo. 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 model of a PPO agent playing MountainCarContinuous-v0 using the stable-baselines3 library.
Downloads · 30 days
9
9% of all-time downloads
All-time downloads
99
Public
Repo size
251 KB
Likes
0
Public
Click a slice to open those files.
.mp4160 KB · 60%
From the Hugging Face model README
This is a trained model of a PPO agent playing MountainCarContinuous-v0 using the stable-baselines3 library.
from stable_baselines3 import PPO
from huggingface_sb3 import load_from_hub
# load and create the model
model_path = load_from_hub("danieladejumo/ppo-mountan_car_continuous",
"ppo-mountan_car_continuous.zip")
model = PPO.load(model_path)
# create Mountain Car Continuous environment and evaluate the trained agent
env = gym.make("MountainCarContinuous-v0")
mean_return, std_return = evaluate_policy(model, env, n_eval_episodes=50, deterministic=True)