March 2019
Intermediate to advanced
184 pages
4h 57m
English
The code for cartpole.py can be run using the following command:
python cartpole.py
The code stores the episode rewards in the performance.txt file. A plot of the episode rewards during training is shown in the following screenshot:

Note that since we have shaped the reward, the episode reward that you can see in the preceding screenshot is different from the values that are typically reported by other researchers in papers and/or blogs.
Read now
Unlock full access