class_docstr: Decays epsilon linearly.
  
  Args:
      hparams (dict or HParams, optional): Hyperparameters. Missing
          hyperparameters are set to default values. See
          :meth:`default_hparams` for the defaults.
class_docstr_tok: ["Decays","epsilon","linearly",".","Args",":","hparams","(","dict","or","HParams",",","optional",")",":","Hyperparameters",".","Missing","hyperparameters","are","set","to","default","values",".","See",":","meth",":","`","default_hparams","`","for","the","defaults","."]
code: def get_epsilon(self, timestep):
      nsteps = self._hparams.decay_timesteps
      st = self._hparams.start_timestep
      et = st + nsteps
  
      if timestep <= st:
          return self._hparams.initial_epsilon
      if timestep > et:
          return self._hparams.final_epsilon
      r = (timestep - st) * 1.0 / nsteps
      epsilon = (
          (1 - r) * self._hparams.initial_epsilon
          + r * self._hparams.final_epsilon
      )
  
      return epsilon
  
file_path: texar/texar/tf/core/explorations.py
imports: from texar.tf.hyperparams import HParams
label_desc: Use image node_id 3 for calling the EpsilonLinearDecayExploration obj's underlying member method code with example usage: obj.get_epsilon(timestep) and returns: epsilon, self, self