Home > Back-end >  Where is source for tensorflow gym environments implementation
Where is source for tensorflow gym environments implementation

Time:09-07

I need to implement custom tensorflow gym environment to use it with tf agents.

Is there a code on Github for "standard" gym environment? Eg cart pole

Please note this is tensorflow specific question not openAi

CodePudding user response:

In addition to my comment:

OpenAI Gym provides a cartpole example: Cartpole.py

If you need any additonal information regarding gym, Cartpole integration or Actor-Critics I can highly recommend the following lectures: Reinforcement Learning @ FAU

CodePudding user response:

According to this tutorial: https://www.tensorflow.org/agents/tutorials/2_environments_tutorial

you either create python (OpenAi like) environment and then use tensorflow wrapper to make it more efficient (covered in the tutorial)

or

create pure tensorflow environment, code example here: https://github.com/tensorflow/agents/blob/master/tf_agents/environments/tf_environment_test.py

  • Related