Error calling Python OpenAI Gym from MATLAB
1 回表示 (過去 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!