June 2018
Intermediate to advanced
546 pages
13h 30m
English
To check this theoretical conclusion in practice, let's plot the variance of the PG during the training for both the baseline version and the version without the baseline. The complete example is in Chapter10/01_cartpole_pg.py and most of the code is the same as in Chapter 9, Policy Gradients – An Alternative. Differences in this version are the following:
--baseline, which enables the mean subtraction from the reward. By default, no baseline is used.To gather only the gradients from the policy loss and exclude the gradients from the entropy bonus added for exploration, we need ...
Read now
Unlock full access