class_docstr: Interprets the prediction using SmoothGrad (https://arxiv.org/abs/1706.03825)
  
  Registered as a `SaliencyInterpreter` with name "smooth-gradient".
class_docstr_tok: ["Interprets","the","prediction","using","SmoothGrad","(","https",":","\/\/arxiv.org\/abs\/1706.03825",")","Registered","as","a","`","SaliencyInterpreter","`","with","name","``","smooth-gradient","''","."]
code: def __init__(self, predictor: Predictor) -> None:
      super().__init__(predictor)
      # Hyperparameters
      self.stdev = 0.01
      self.num_samples = 10
  
file_path: allennlp/allennlp/interpret/saliency_interpreters/smooth_gradient.py
imports: import math
  from typing import Dict, Any
  import numpy
  import torch
  from allennlp.common.util import JsonDict, sanitize
  from allennlp.data import Instance
  from allennlp.interpret.saliency_interpreters.saliency_interpreter import SaliencyInterpreter
  from allennlp.predictors import Predictor
label_desc: Use image node_id 1 to create a new SmoothGradient object from inherited base classes: SaliencyInterpreter with example: obj = SmoothGradient(predictor)