Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chingyaoc/pytorch-REINFORCE

PyTorch Implementation of REINFORCE for both discrete & continuous control
https://github.com/chingyaoc/pytorch-REINFORCE

continuous-control gym mujoco pytorch reinforce reinforcement-learning

Last synced: about 2 months ago
JSON representation

PyTorch Implementation of REINFORCE for both discrete & continuous control

Awesome Lists containing this project

README

        

# PyTorch REINFORCE

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](https://github.com/pytorch/examples/blob/master/reinforcement_learning/reinforce.py)