jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.72k stars 3.03k forks source link

TypeError: Environment should implement py_environment.PyEnvironment #98

Closed fatenlouati closed 3 years ago

fatenlouati commented 3 years ago

Hi Mr Jeff, I'm tring to execute the code which create own environment in my own pc but I get this error: TypeError: Environment should implement py_environment.PyEnvironment In call to configurable 'TFPyEnvironment' (<class 'tf_agents.environments.tf_py_environment.TFPyEnvironment'>) How can I fix this issue. Thank you

jeffheaton commented 3 years ago

Which of my source files are you trying to execute? How do I reproduce this error?

fatenlouati commented 3 years ago

Moduld 12 part 12.5

jeffheaton commented 3 years ago

https://github.com/jeffheaton/t81_558_deep_learning/blob/master/t81_558_class_12_05_apply_rl.ipynb

jeffheaton commented 3 years ago

I tried running this in colab, and did not get any errors. If this is still an issue, let me know exactly which line you see this on. Likely an old version of one of the libraries I guess.