class_docstr: An online Q-lambda agent.
class_docstr_tok: ["An","online","Q-lambda","agent","."]
code: def actor_step(
      self, params, env_output, actor_state, key, evaluation
  ):
      q = self._network.apply(params, env_output.observation)
      train_a = rlax.epsilon_greedy(self._epsilon).sample(key, q)
      eval_a = rlax.greedy().sample(key, q)
      a = jax.lax.select(evaluation, eval_a, train_a)
      return ActorOutput(actions=a, q_values=q), actor_state
  
imports: import collections
  from absl import app
  from absl import flags
  from bsuite.environments import catch
  import dm_env
  import haiku
  from haiku import nets
  import jax
  import jax.numpy
  import numpy
  import optax
  import rlax
  from rlax.examples import experiment
label_desc: Use image node_id 5 for calling the OnlineQLambda obj's underlying member method code with example usage: obj.actor_step(params, env_output, actor_state, key, evaluation) and returns: ActorOutput,  actor_state