keras-io / ppo-cartpole

huggingface.co
Total runs: 38
24-hour runs: 0
7-day runs: 3
30-day runs: 26
Model's Last Updated: January 13 2022

Introduction of ppo-cartpole

Model Details of ppo-cartpole

Keras Implementation of Proximal Policy Optimization on Cartpole Environment 🔨🤖

This repo contains the model and the notebook to this Keras example on PPO for Cartpole .

Full credits to: Ilias Chrysovergis

cartpole_gif

Background Information
CartPole-v0

A pole is attached by an un-actuated joint to a cart, which moves along a frictionless track. The system is controlled by applying a force of +1 or -1 to the cart. The pendulum starts upright, and the goal is to prevent it from falling over. A reward of +1 is provided for every timestep that the pole remains upright. The episode ends when the pole is more than 15 degrees from vertical, or the cart moves more than 2.4 units from the center. After 200 steps the episode ends. Thus, the highest return we can get is equal to 200.

Proximal Policy Optimization

PPO is a policy gradient method and can be used for environments with either discrete or continuous action spaces. It trains a stochastic policy in an on-policy way. Also, it utilizes the actor critic method. The actor maps the observation to an action and the critic gives an expectation of the rewards of the agent for the observation given. Firstly, it collects a set of trajectories for each epoch by sampling from the latest version of the stochastic policy. Then, the rewards-to-go and the advantage estimates are computed in order to update the policy and fit the value function. The policy is updated via a stochastic gradient ascent optimizer, while the value function is fitted via some gradient descent algorithm. This procedure is applied for many epochs until the environment is solved.

Runs of keras-io ppo-cartpole on huggingface.co

38
Total runs
0
24-hour runs
-1
3-day runs
3
7-day runs
26
30-day runs

More Information About ppo-cartpole huggingface.co Model

More ppo-cartpole license Visit here:

https://choosealicense.com/licenses/cc0-1.0

ppo-cartpole huggingface.co

ppo-cartpole huggingface.co is an AI model on huggingface.co that provides ppo-cartpole's model effect (), which can be used instantly with this keras-io ppo-cartpole model. huggingface.co supports a free trial of the ppo-cartpole model, and also provides paid use of the ppo-cartpole. Support call ppo-cartpole model through api, including Node.js, Python, http.

ppo-cartpole huggingface.co Url

https://huggingface.co/keras-io/ppo-cartpole

keras-io ppo-cartpole online free

ppo-cartpole huggingface.co is an online trial and call api platform, which integrates ppo-cartpole's modeling effects, including api services, and provides a free online trial of ppo-cartpole, you can try ppo-cartpole online for free by clicking the link below.

keras-io ppo-cartpole online free url in huggingface.co:

https://huggingface.co/keras-io/ppo-cartpole

ppo-cartpole install

ppo-cartpole is an open source model from GitHub that offers a free installation service, and any user can find ppo-cartpole on GitHub to install. At the same time, huggingface.co provides the effect of ppo-cartpole install, users can directly use ppo-cartpole installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ppo-cartpole install url in huggingface.co:

https://huggingface.co/keras-io/ppo-cartpole

Url of ppo-cartpole

ppo-cartpole huggingface.co Url

Provider of ppo-cartpole huggingface.co

keras-io
ORGANIZATIONS

Other API from keras-io

huggingface.co

Total runs: 44
Run Growth: 32
Growth Rate: 72.73%
Updated:July 05 2024
huggingface.co

Total runs: 35
Run Growth: 13
Growth Rate: 37.14%
Updated:January 13 2022
huggingface.co

Total runs: 29
Run Growth: 21
Growth Rate: 72.41%
Updated:July 05 2024
huggingface.co

Total runs: 28
Run Growth: 8
Growth Rate: 28.57%
Updated:May 23 2025
huggingface.co

Total runs: 28
Run Growth: -12
Growth Rate: -42.86%
Updated:February 18 2022
huggingface.co

Total runs: 21
Run Growth: 12
Growth Rate: 57.14%
Updated:July 05 2024
huggingface.co

Total runs: 20
Run Growth: 0
Growth Rate: 0.00%
Updated:February 04 2022
huggingface.co

Total runs: 17
Run Growth: 8
Growth Rate: 47.06%
Updated:March 01 2022
huggingface.co

Total runs: 14
Run Growth: 6
Growth Rate: 42.86%
Updated:July 05 2024
huggingface.co

Total runs: 14
Run Growth: 3
Growth Rate: 21.43%
Updated:July 05 2024
huggingface.co

Total runs: 11
Run Growth: -23
Growth Rate: -209.09%
Updated:August 15 2022
huggingface.co

Total runs: 10
Run Growth: -7
Growth Rate: -70.00%
Updated:July 05 2024
huggingface.co

Total runs: 9
Run Growth: 1
Growth Rate: 11.11%
Updated:July 05 2024
huggingface.co

Total runs: 7
Run Growth: -8
Growth Rate: -114.29%
Updated:February 23 2022
huggingface.co

Total runs: 6
Run Growth: -14
Growth Rate: -233.33%
Updated:July 05 2024
huggingface.co

Total runs: 4
Run Growth: -2
Growth Rate: -50.00%
Updated:July 05 2024
huggingface.co

Total runs: 4
Run Growth: -11
Growth Rate: -275.00%
Updated:February 06 2022
huggingface.co

Total runs: 3
Run Growth: -5
Growth Rate: -166.67%
Updated:July 05 2024
huggingface.co

Total runs: 2
Run Growth: -4
Growth Rate: -200.00%
Updated:July 05 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:February 16 2022
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:July 05 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 12 2023