Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 54134

For questions related to the REINFORCE algorithm (or update rule), which is a policy gradient algorithm, that is, an algorithm which estimates the policy directly (that is, without first estimating any value function).

2 votes
Accepted

Should the concept of discounted rewards result in multiple arrays per episode in RL?

because it will take into account all future rewards almost at their full value, whereas if $\gamma$ is close to 0, $G_k$ will be close to 1, i.e. it will take into account just the first reward Now, in REINFORCE
Raphael Lopez Kaufman's user avatar
4 votes
Accepted

What modifications can maximize the efficacy of the REINFORCE algorithm for a policy gradien...

One simple improvement over the REINFORCE algorithm you've linked to is to use the advantage function instead of the normalised cumulative discounted return. … In your implementation of REINFORCE, the gradient of the loss is calculated as: $$ L(\theta) = -\sum_{t=0}^T\hat{G}_t\log(\pi_\theta(a_t|s_t)) $$ with $$\hat{G}_t = \frac{\sum_{k=0}^t r_k - \hat{r}}{\hat …
Raphael Lopez Kaufman's user avatar