Skip to content

Latest commit

 

History

History
 
 

QuickStart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Quick Start Example

Based on PARL, train a agent to play CartPole game with policy gradient algorithm in a few minutes.

How to use

Dependencies:

Start Training:

# Install dependencies
pip install paddlepaddle  
# Or use Cuda: pip install paddlepaddle-gpu

pip install gym
git clone https://github.com/PaddlePaddle/PARL.git
cd PARL
pip install .

# Train model
cd examples/QuickStart/
python train.py  
# Or visualize when evaluating: python train.py --eval_vis

Result

After training, you will see the agent get the best score (200 points).