Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
現在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);

Respuestas (2)

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

shoki kobayashi
shoki kobayashi el 10 de Abr. de 2020
R2019bでした。 View MATLAB Commandを用いると成功しました。 ありがとうございました。

Etiquetas

Community Treasure Hunt

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

Start Hunting!