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

贡献者指南