Error calling Python OpenAI Gym from MATLAB
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
When will this interface be ready? (https://uk.mathworks.com/matlabcentral/answers/568278-environment-for-reinforcement-learning-project)
I am currently trying to interface the OpenAI Gym from MATLAB using the link in the above answer post and it works fine for discrete action problems as in the example in the link using "this.open_env.step(int16(Action));" for the discrete cart pole problem. However for the continuous cart problem I get the following error when calling the step function "this.open_env.step(double(Action));" :--
Python Error: TypeError: 'float' object is not subscriptable
How can this problem be avoided?
Thx!
댓글 수: 1
Hans Scharler
2023년 1월 23일
Have you tried the bindings: https://github.com/openai/gym-http-api/tree/master/binding-matlab
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!