integrated_gradient
allennlp.interpret.saliency_interpreters.integrated_gradient
IntegratedGradient#
@SaliencyInterpreter.register("integrated-gradient")
class IntegratedGradient(SaliencyInterpreter)
Interprets the prediction using Integrated Gradients (https://arxiv.org/abs/1703.01365)
Registered as a SaliencyInterpreter
with name "integrated-gradient".
saliency_interpret_from_json#
class IntegratedGradient(SaliencyInterpreter):
| ...
| def saliency_interpret_from_json(self, inputs: JsonDict) -> JsonDict
Convert inputs to labeled instances