class_docstr: Example: ::
  
      >>> from torchbearer import Trial
      >>> from torchbearer.callbacks import ExponentialLR
  
      >>> # Example scheduler which multiplies the learning rate by 0.1 every epoch
      >>> scheduler = ExponentialLR(gamma=0.1)
      >>> trial = Trial(None, callbacks=[scheduler], metrics=['loss'], verbose=2).for_steps(10).run(1)
  
  Args:
      step_on_batch (bool): If True, step will be called on each training iteration rather than on each epoch
  
  See:
      `PyTorch ExponentialLR <http://pytorch.org/docs/master/optim.html#torch.optim.lr_scheduler.ExponentialLR>`_
class_docstr_tok: ["Example",":",":",":",">",">",">","from","torchbearer","import","Trial",">",">",">","from","torchbearer.callbacks","import","ExponentialLR",">",">",">","#","Example","scheduler","which","multiplies","the","learning","rate","by","0.1","every","epoch",">",">",">","scheduler","=","ExponentialLR","(","gamma=0.1",")",">",">",">","trial","=","Trial","(","None",",","callbacks=","[","scheduler","]",",","metrics=","[","'loss","'","]",",","verbose=2",")",".for_steps","(","10",")",".run","(","1",")","Args",":","step_on_batch","(","bool",")",":","If","True",",","step","will","be","called","on","each","training","iteration","rather","than","on","each","epoch","See",":","`","PyTorch","ExponentialLR","<","http",":","\/\/pytorch.org\/docs\/master\/optim.html","#","torch.optim.lr_scheduler.ExponentialLR",">","`","_"]
code: def __init__(self, gamma, step_on_batch=False):
      super(ExponentialLR, self).__init__(
          functools.partial(
              torch.optim.lr_scheduler.ExponentialLR, gamma=gamma
          ),
          step_on_batch=step_on_batch,
      )
  
imports: import functools
  import warnings
  import torch
  import torchbearer
  from torchbearer.bases import get_metric, _pytorch_version_lt, _pytorch_version_gt
  from torchbearer.callbacks import Callback
label_desc: Use image node_id 1 to create a new ExponentialLR object from inherited base classes: TorchScheduler with example: obj = ExponentialLR(gamma, step_on_batch)