pytorch/examples

Actor critic example not using discount rate properly

Open

#744 aberto em 27 de mar. de 2020

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Python (9.429 forks)batch import
good first issuetriaged

Métricas do repositório

Stars
 (21.634 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

The Actor Critic example (which is actually an implementation of REINFORCE-with-baseline as pointed out in https://github.com/pytorch/examples/issues/573), does not use the discount rate properly.

The loss should include \gamma ^ t, as shown in the box on page 330 of Sutton & Barto:

image

Guia do colaborador