Skip to content

Commit

Permalink
Update pg-theorem.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
simoninithomas authored Mar 5, 2024
1 parent 9d777a0 commit 72473f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion units/en/unit4/pg-theorem.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ We can simplify further this since



\\ (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) \\)
\\( 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) \\)

We can then use the *derivative log trick* (also called *likelihood ratio trick* or *REINFORCE trick*), a simple rule in calculus that implies that \\( \nabla_x log f(x) = \frac{\nabla_x f(x)}{f(x)} \\)

Expand Down

0 comments on commit 72473f0

Please sign in to comment.