Downloads · 30 days
0
sayby/Reinforce-CartPole-v1
Reinforce-CartPole-v1 is a reinforcement learning model from sayby. 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 model of a Reinforce agent playing CartPole-v1 .
Downloads · 30 days
0
Access
Public
Updated Dec 2, 2022
Repo size
31.2 KB
Likes
0
Public
Click a slice to open those files.
.mp415.4 KB · 70%
From the Hugging Face model README
This is a trained model of a Reinforce agent playing CartPole-v1 .
model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="model.pt")
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
env = gym.make(model["env_id"])
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["eval_seed"])