smooth_gradient
allennlp.interpret.saliency_interpreters.smooth_gradient
SmoothGradient#
@SaliencyInterpreter.register("smooth-gradient")
class SmoothGradient(SaliencyInterpreter):
| def __init__(self, predictor: Predictor) -> None
Interprets the prediction using SmoothGrad (https://arxiv.org/abs/1706.03825)
Registered as a SaliencyInterpreter
with name "smooth-gradient".
saliency_interpret_from_json#
class SmoothGradient(SaliencyInterpreter):
| ...
| def saliency_interpret_from_json(self, inputs: JsonDict) -> JsonDict
Convert inputs to labeled instances