Effacer les filtres
Effacer les filtres

Error calling Python OpenAI Gym from MATLAB

8 vues (au cours des 30 derniers jours)
John Adams
John Adams le 29 Nov 2021
Commenté : Hans Scharler le 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!

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by