class_docstr: Implements an exploration strategy for Policies.
  
  An Exploration takes model outputs, a distribution, and a timestep from
  the agent and computes an action to apply to the environment using an
  implemented exploration schema.
class_docstr_tok: ["Implements","an","exploration","strategy","for","Policies",".","An","Exploration","takes","model","outputs",",","a","distribution",",","and","a","timestep","from","the","agent","and","computes","an","action","to","apply","to","the","environment","using","an","implemented","exploration","schema","."]
docstr: Returns a (possibly) exploratory action and its log-likelihood.
  
  Given the Model's logits outputs and action distribution, returns an
  exploratory action.
  
  Args:
      action_distribution: The instantiated
          ActionDistribution object to work with when creating
          exploration actions.
      timestep: The current sampling time step. It can be a tensor
          for TF graph mode, otherwise an integer.
      explore: True: "Normal" exploration behavior.
          False: Suppress all exploratory behavior and return
          a deterministic action.
  
  Returns:
      A tuple consisting of 1) the chosen exploration action or a
      tf-op to fetch the exploration action from the graph and
      2) the log-likelihood of the exploration action.
docstr_tok: ["Returns","a","(","possibly",")","exploratory","action","and","its","log-likelihood",".","Given","the","Model","'s","logits","outputs","and","action","distribution",",","returns","an","exploratory","action",".","Args",":","action_distribution",":","The","instantiated","ActionDistribution","object","to","work","with","when","creating","exploration","actions",".","timestep",":","The","current","sampling","time","step",".","It","can","be","a","tensor","for","TF","graph","mode",",","otherwise","an","integer",".","explore",":","True",":","``","Normal","''","exploration","behavior",".","False",":","Suppress","all","exploratory","behavior","and","return","a","deterministic","action",".","Returns",":","A","tuple","consisting","of","1",")","the","chosen","exploration","action","or","a","tf-op","to","fetch","the","exploration","action","from","the","graph","and","2",")","the","log-likelihood","of","the","exploration","action","."]
code: def get_exploration_action(
      self,
      *,
      action_distribution: ActionDistribution,
      timestep: Union[TensorType, int],
      explore: bool = True,
  ):
      """Returns a (possibly) exploratory action and its log-likelihood.
  
      Given the Model's logits outputs and action distribution, returns an
      exploratory action.
  
      Args:
          action_distribution: The instantiated
              ActionDistribution object to work with when creating
              exploration actions.
          timestep: The current sampling time step. It can be a tensor
              for TF graph mode, otherwise an integer.
          explore: True: "Normal" exploration behavior.
              False: Suppress all exploratory behavior and return
              a deterministic action.
  
      Returns:
          A tuple consisting of 1) the chosen exploration action or a
          tf-op to fetch the exploration action from the graph and
          2) the log-likelihood of the exploration action.
      """
      pass
  
file_path: ray/rllib/utils/exploration/exploration.py
imports: from gymnasium.spaces import Space
  from typing import Dict, List, Optional, Union, TYPE_CHECKING
  from ray.rllib.env.base_env import BaseEnv
  from ray.rllib.models.action_dist import ActionDistribution
  from ray.rllib.models.modelv2 import ModelV2
  from ray.rllib.policy.sample_batch import SampleBatch
  from ray.rllib.utils.annotations import DeveloperAPI, PublicAPI
  from ray.rllib.utils.framework import try_import_torch, TensorType
  from ray.rllib.utils.typing import LocalOptimizer, AlgorithmConfigDict
label_desc: Use image node_id 3 for calling the Exploration obj's underlying member method code with example usage: obj.get_exploration_action() without return types