Filter löschen
Filter löschen

Error calling Python OpenAI Gym from MATLAB

8 Ansichten (letzte 30 Tage)
John Adams
John Adams am 29 Nov. 2021
Kommentiert: Hans Scharler am 23 Jan. 2023
Hi,
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!

Antworten (0)

Kategorien

Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by