Creating Q-table

8 ビュー (過去 30 日間)
Izzat Brgli
Izzat Brgli 2021 年 3 月 17 日
コメント済み: RUBEN HERNANDEZ 2022 年 4 月 26 日
I have made my own RL environment where the observation is a vector of 8 elements "for example [1,2,3,4,5,6,7,8]" and the action set has four elements(["up","down","right", "left"]) and I'm trying to apply Q-Learning algorithm. my question is how to create the q-table. I did read about
T = rlTable(obsinfo,actinfo)
but I got stuck without any progress. How can I create the table?
  2 件のコメント
hsu yi cheng
hsu yi cheng 2021 年 9 月 3 日
編集済み: hsu yi cheng 2021 年 9 月 3 日
Hi, I'm working on a similar project as yours. May I have your file as a reference ? Thanks
RUBEN HERNANDEZ
RUBEN HERNANDEZ 2022 年 4 月 26 日
Hi, Im' trying to simulate Q-learnig for control inverted pendulum in simulink, but i have problem to create the q-table.
For example, I have three watch signals. How can it be defined as discrete observations with their limits?

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

回答 (1 件)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021 年 3 月 18 日
編集済み: Emmanouil Tzorakoleftherakis 2021 年 3 月 18 日
Did you take a look at this example? It seems to solve a similar problem.
If you want to use the provided API to create a custom grid world, I would follow this link.
If you are implemeting your own, you want to use rlFiniteSetSpec which is designed for discrete observation. rlNumericSpec is for observations continuous in nature.
  4 件のコメント
Izzat Brgli
Izzat Brgli 2021 年 3 月 18 日
編集済み: Izzat Brgli 2021 年 3 月 18 日
I did what you have recommended and it worked partially. I have right now a table which has the same row's number as the observation's number and the column's number as the action's number but without header (names for columns and rows) and the question is how can I retrieve the data or store it?
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2021 年 3 月 18 日
Not sure I understand the question. If you type
yourTablename.Table
you have access to all the table elements and you can use them however you need.

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

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by