How do I define a continuous reward function for RL environment?

17 ビュー (過去 30 日間)
Prashanth Chivkula
Prashanth Chivkula 2020 年 10 月 5 日
I am trying to follow the double integrator example for giving a continuous reward function. When I used the custom template, and defined the reward using the QR cost function, I get an error stating that the reward should be a scalar value. Where can I find the property of reward and change it to accept vector values?
  3 件のコメント
Prashanth Chivkula
Prashanth Chivkula 2020 年 10 月 12 日
Yes I did that, thank you, Just to confirm the output of the cost function will always be a scalar value, right? So in the double integrator continuous example there are two states but the output reward at each step is a scalar value, right?
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2020 年 10 月 12 日
That's right

サインインしてコメントする。

採用された回答

Priysha LNU
Priysha LNU 2020 年 10 月 8 日
Here is an excerpt from the documentation :
To guide the learning process, reinforcement learning uses a scalar reward signal generated from the environment.
For detailed information on defining reward signals, discrete and continous rewards, please refer to this documentation link.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironments についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by