pytorch/examples

Actor critic example not using discount rate properly

Open

#744 建立於 2020年3月27日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Python (9,429 fork)batch import
good first issuetriaged

倉庫指標

Star
 (21,634 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南