pytorch/examples

Actor critic example not using discount rate properly

開放

#744 建立於 2020年3月27日

 (3 則留言) (0 個反應) (0 位負責人)Python (9,429 個分叉)batch import
good first issuetriaged

倉庫指標

星標
 (21,634 顆星)
PR 合併指標
 (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

貢獻者指南