Random.set_state(state: object, sess: tf.Session | None = None) None#

Sets the Exploration object’s state to the given values.

Note that some exploration components are stateless, even though they decay some values over time (e.g. EpsilonGreedy). However the decay is only dependent on the current global timestep of the policy and we therefore don’t need to keep track of it.

  • state – The state to set this Exploration to.

  • sess – An optional tf Session object to use.