How do I check my custom Env in Reinforce.jl?

You will have to create an instance of the CartPole environment. I’m not quite sure what the constructor is for CartPole (you can likely figure that out through ?CartPole in the repl to get documentation.

It will be something like:

env = CartPole()
start!(env)
step!(env, action, ...)

You should also be able to get what methods are available for instances of a type with methodswith(CartPole).

1 Like