AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL

a typeError in build_env() function

Abierto
#358 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
4.4k
Forks
978
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I inherited from gym.Env and created a new class, passing in the additional parameter env_config in the __init__ method of this new class. But when I use train_agent(), the built_env() will report an error, check elegantRL source code, this is because my gym.make is gym.envs.registration. So by default no parameters are passed when creating an environment. Is there any solution?
![image1](https://github.com/AI4Finance-Foundation/ElegantRL/assets/57026939/107e7748-7588-4b20-890b-f056111c1e80)
![image2](https://github.com/AI4Finance-Foundation/ElegantRL/assets/57026939/bb99a850-9184-4df2-9343-9a06b0023bd0)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.