Train AC Agent to Balance Cart-Pole System Using Parallel Computingの​rlValueRep​resentatio​nについて

1 回表示 (過去 30 日間)
shoki kobayashi
shoki kobayashi 2020 年 4 月 7 日
回答済み: shoki kobayashi 2020 年 4 月 10 日
現在Train AC Agent to Balance Cart-Pole System Using Parallel Computingを使おうと思い、実行したのですが
rlValueRepresentationが認識されませんとエラーが出てしまいます。
rlStochasticActorRepresentationも同様にエラーが出ます。
どのようにしたら改善されるのでしょうか。
プログラムの中は以下のようなっています
critic側の作成
criticNetwork = [
imageInputLayer([4 1 1],'Normalization','none','Name','state')
fullyConnectedLayer(32,'Name','CriticStateFC1')
reluLayer('Name','CriticRelu1')
fullyConnectedLayer(1, 'Name', 'CriticFC')];
criticOpts = rlRepresentationOptions('LearnRate',1e-2,'GradientThreshold',1);
critic = rlValueRepresentation(criticNetwork,obsInfo,'Observation',{'state'},criticOpts);

回答 (2 件)

Toshinobu Shintai
Toshinobu Shintai 2020 年 4 月 7 日
お使いのMATLABのバージョンはR2019aまたは19bでしょうか。もしそうであれば、エラーとなります。
理由は、「rlValueRepresentation」や「rlStochasticActorRepresentation」はR2020aから導入された新しいコマンドだからです。分かりにくくて申し訳ありません。
参考までに、各サンプルモデルは、バージョンごとにそれぞれ個別に用意されています。古いバージョンのサンプルモデルを開きたい場合は、以下のようにしてください。
  1. サンプルモデルの紹介Webサイトの右側にある「View MATLAB Command」をクリックする。
  2. 表示されたコマンドをMATLABのコマンドウィンドウで実行する。(例えば今回のサンプルモデルでは、openExample('rl/MATLABCartPoleParACExample') となっています

shoki kobayashi
shoki kobayashi 2020 年 4 月 10 日
R2019bでした。 View MATLAB Commandを用いると成功しました。 ありがとうございました。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!