ray.rllib.utils.exploration.exploration.Exploration.set_state#

Exploration.set_state(state: object, sess: tf.Session | None = None) None[source]#

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.

Parameters:
  • state – The state to set this Exploration to.

  • sess – An optional tf Session object to use.