Reinforcement Learning toolbox step function

17 ビュー (過去 30 日間)
Mostafa Nazmi
Mostafa Nazmi 2020 年 9 月 7 日
コメント済み: Kamalova Albina 2022 年 2 月 21 日
Greetings everyone, I hope you're having a good time. In reinforcement learning toolbox there's a functin named "step(env, Action)", I wanted to know what is the role of the input "Action" in this function?
[Observation, Reward, IsDone, LoggedSignals] = step(env, Action)

採用された回答

Stephan
Stephan 2020 年 9 月 7 日
編集済み: Stephan 2020 年 9 月 7 日
The action the agent has choosen in the last step, usually has an impact on the environment. To let the step function know what action was choosen the step before, you have to refer the last action to the next call of the step function, which then - based on this informations calculates the next observation, the reward and the iSDone flag.
See this example:
In the example given in the link above the action is a directed force that is applied to the system in the following step to calculate the new observations from the current step.
Building on that the step function can calculate the reward and if the IsDone value is true. Using these informations the agent gets a new information from the environment, which is the basis for the choice of the next action.
  3 件のコメント
Maha Mosalam
Maha Mosalam 2021 年 11 月 22 日
Hi, what about the xact role of IsDone flag it it shuld be true or false or what?
Kamalova Albina
Kamalova Albina 2022 年 2 月 21 日
IsDone flag means the episode is finished or not. It should have a condition logic. For example, let's say you are hungry and you decide to eat something. In step function, you are continuously eating while do the actions to choose fry potato or tomato (maybe). How to know you are done and full already?! IsDone is this flag for showing you should stop this eating episode

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by