Is it possible 'LSTM net' to be the env of reinforcement learning?
조회 수: 2 (최근 30일)
이전 댓글 표시
Byung - Gi Jeon
2021년 2월 28일
답변: Emmanouil Tzorakoleftherakis
2021년 3월 1일
I want to create 'my env' for reinforcement learning.
Many matlab examples use robots and cars as env(using simulink).
I wasn't able to make 'LSTM net' into 'myenv' by referring to them due to poor matlab skills.
I'm referring to the document'Create MATLAB Environments for Reinforcement Learning', but I couldn't find anything to implement net as env.
I have an LSTM network that has already been learned. I want to proceed with reinforcement learning using this net as env. Is there any simple code to get env?
댓글 수: 1
Stephan
2021년 2월 28일
Did you check here?
I dont see a reason why you should not be able to write a custom environment function that uses your LSTM.
채택된 답변
Emmanouil Tzorakoleftherakis
2021년 3월 1일
Hello,
Looks like your environment is in MATLAB (i.e. not in Simulink). There is not restriction on using an LSTM as an environment. What you would need to do is use current state and action as inputs to your LSTM, perform inference from inside the "step" function of the RL environment using predict or predictAndUpdateState, then extract your states/observations from the network output.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!