Skip to content

Commit

Permalink
[ci skip] Simplify quickstart example
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed May 11, 2020
1 parent b02afd6 commit b1794eb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ Here is a quick example of how to train and run PPO on a cartpole environment:
import gym

from stable_baselines3 import PPO
from stable_baselines3.ppo import MlpPolicy

env = gym.make('CartPole-v1')

Expand Down
3 changes: 1 addition & 2 deletions docs/guide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ Here is a quick example of how to train and run A2C on a CartPole environment:
import gym
from stable_baselines3 import A2C
from stable_baselines3.a2c import MlpPolicy
env = gym.make('CartPole-v1')
model = A2C(MlpPolicy, env, verbose=1)
model = A2C('MlpPolicy', env, verbose=1)
model.learn(total_timesteps=10000)
obs = env.reset()
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
import gym
from stable_baselines3 import PPO
from stable_baselines3.ppo import MlpPolicy
env = gym.make('CartPole-v1')
model = PPO(MlpPolicy, env, verbose=1)
model = PPO('MlpPolicy', env, verbose=1)
model.learn(total_timesteps=10000)
obs = env.reset()
Expand Down

0 comments on commit b1794eb

Please sign in to comment.