PyTorch REINFORCE

April 16, 2017 ยท View on GitHub

PyTorch implementation of REINFORCE.
This repo supports both continuous and discrete environments in OpenAI gym.

Requirement

  • python 2.7
  • PyTorch
  • OpenAI gym
  • Mujoco (optional)

Run

Use the default hyperparameters. (Program will detect whether the environment is continuous or discrete)

python main.py --env_name [name of environment]

Experiment results

continuous: InvertedPendulum-v1

discrete: CartPole-v0

Reference

  • pytorch example

Contents

  1. 1Requirement
  2. 2Run
  3. 3Experiment results
  4. 3.1continuous: InvertedPendulum-v1
  5. 3.2discrete: CartPole-v0
  6. 4Reference