我如何正确替代rlRepresentation rlValueRepresentation, rlQValueRepresentation, rlDeterministicActorRepresentation, rlStochasticActorRepresentation ?

7视图(30天)
我用MATLAB r2020a rlRepresentation在哪里“不推荐”。As a result, I am forced to substitute it with the criritics or actors in the following compatibility guide ( //www.tatmou.com/帮助强化学习/ref / rlrepresentation.html # mw_a6277225 - fecf 4 - d97 - 95491 fc4799bf5b6 )。我试着用rlValueRepresentation代替rlRepresentation, rlQValueRepresentation, rlDeterministicActorRepresentation, rlStochasticActorRepresentation(尽管我离开了 rlRepresentationOptions就是它了)。他们都导致了错误, rlValueRepresentation和rlStochasticActorRepresentation最少的(同样的)错误:
错误使用rlStochasticActorRepresentation(第93行)
太多的输入参数。
错误createDDPGNetworks(51)行
评论家= rlStochasticActorRepresentation (criticNetwork, criticOptions,…
因为这个评论家和演员都有相同的错误,我认为这可能与 rlRepresentationOptions因为它给属性的演员或评论家(据我了解)。
供参考,我试图效仿这个项目( https://www.youtube.com/watch?v = 6 dl5m9b2j6i MATLAB r2020a)。
任何帮助都是感激。

答案(3)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2020年7月17日
它会有帮助如果你粘贴的MATLAB代码你打字看看问题是什么。我怀疑你只是改变了方法名,这就是为什么你得到你所看到的错误。看一看各自方法的文档页面您想要使用(rlValueRepresentation等),确保吗 订单和数量 的参数匹配的文档。

萨尔玛哈立德
萨尔玛哈立德 2021年8月5日
  1. 使用一个创建一个演员rlDeterministicActorRepresentation对象。
  2. 创建一个使用一个评论家rlQValueRepresentation对象
//www.tatmou.com/help/reinforcement-learning/ug/ddpg-agents.html

下载188bet金宝搏


释放

R2020a

社区寻宝

找到宝藏在MATLAB中央,发现社区如何帮助你!

开始狩猎!