Skip to content

Commit

Permalink
Merge pull request #520 from vicha-w/main
Browse files Browse the repository at this point in the history
Fixed typeset in (optional) policy gradient theorem
  • Loading branch information
simoninithomas authored Jun 10, 2024
2 parents 5e9aadb + ab8b04f commit 574e055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/en/unit4/pg-theorem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ We then multiply every term in the sum by \\(\frac{P(\tau;\theta)}{P(\tau;\theta
\\( = \sum_{\tau} \frac{P(\tau;\theta)}{P(\tau;\theta)}\nabla_\theta P(\tau;\theta)R(\tau) \\)


We can simplify further this since \\( \frac{P(\tau;\theta)}{P(\tau;\theta)}\nabla_\theta P(\tau;\theta)\\).
We can simplify further this since \\( \frac{P(\tau;\theta)}{P(\tau;\theta)}\nabla_\theta P(\tau;\theta) = P(\tau;\theta)\frac{\nabla_\theta P(\tau;\theta)}{P(\tau;\theta)} \\).

Thus we can rewrite the sum as \\( = P(\tau;\theta)\frac{\nabla_\theta P(\tau;\theta)}{P(\tau;\theta)} \\)
Thus we can rewrite the sum as

\\( P(\tau;\theta)\frac{\nabla_\theta P(\tau;\theta)}{P(\tau;\theta)}= \sum_{\tau} P(\tau;\theta) \frac{\nabla_\theta P(\tau;\theta)}{P(\tau;\theta)}R(\tau) \\)

Expand Down

0 comments on commit 574e055

Please sign in to comment.