Train an agent with PARL to solve the CartPole problem, a classical benchmark in RL.
# 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
The agent can get around 200 points in a few minutes.