Creating Q-table
이전 댓글 표시
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
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
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
2021년 3월 18일
편집: Emmanouil Tzorakoleftherakis
2021년 3월 18일
0 개 추천
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
2021년 3월 18일
편집: Izzat Brgli
2021년 3월 18일
Emmanouil Tzorakoleftherakis
2021년 3월 18일
If you are implemeting your own, you want to use rlFiniteSetSpec which is designed for discrete observation. rlNumericSpec is for observations continuous in nature.
(I updated my answer above)
Izzat Brgli
2021년 3월 18일
편집: Izzat Brgli
2021년 3월 18일
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.
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!