@@ -72,11 +72,11 @@ def interpret(self,
7272
7373 self ._build_predict_fn (gradient_of = 'probability' )
7474
75- _ , predcited_labels , predcited_probas = self .predict_fn (data , labels )
76- self .predcited_labels = predcited_labels
77- self .predcited_probas = predcited_probas
75+ _ , predicted_label , predicted_proba = self .predict_fn (data , labels )
76+ self .predicted_label = predicted_label
77+ self .predicted_proba = predicted_proba
7878 if labels is None :
79- labels = predcited_labels
79+ labels = predicted_label
8080
8181 def add_noise_to_inputs (data ):
8282 max_axis = tuple (np .arange (1 , data .ndim ))
@@ -181,8 +181,8 @@ def interpret(self,
181181 bs = data .shape [0 ]
182182
183183 gradients , labels , data_out , probas = self .predict_fn (data , labels , None )
184- self .predcited_labels = labels
185- self .predcited_probas = probas
184+ self .predicted_label = labels
185+ self .predicted_proba = probas
186186
187187 labels = labels .reshape ((bs , ))
188188 total_gradients = np .zeros_like (gradients )
0 commit comments