Open ernestum opened 5 years ago
I am thinking about putting it in the custom models section of the documentation. What do you guys think?
It seems quite advanced to put it in the user guide. Or maybe in a new "advanced" section? However, a simple example of using custom Keras policy could be a could idea (for instance a MlpPolicy).
Yes maybe there can be an advanced section. But I remember the above example to be somewhat buggy. So we can not just plain copy paste. We need to test it again first.
Just in case anybody is interested, here is some example code that implements a policy based on the recurrent cells in
tensorflow.python.keras.layers
. Pros:Cons:
tf.while_loop
.LstmPolicy
constructor (PPO2 forces us to inherit fromLstmPolicy
)Now that I wrote down this list, it seems quite stupid to use it in any way. I put lots of work in it. Maybe it is a starting point for something else.
I am thinking about putting it in the custom models section of the documentation. What do you guys think?