interpret-text icon indicating copy to clipboard operation
interpret-text copied to clipboard

Rationale Introspective Explainer Visualization Bugs

Open minthigpen opened this issue 5 years ago • 3 comments

MicrosoftTeams-image (7)

[cls] and [sep] should not show up. Also the label doesn't change and the anti-rationales, which would have been the neg feat. importance are not passed into the dashboard

minthigpen avatar Apr 17 '20 04:04 minthigpen

@imatiach-msft : @enosakhare recommended the fix (similar fix) which was made to unified information explainer. return _create_local_explanation( classification=True, text_explanation=True, local_importance_values=np.array(local_importance_values)[1:-1], method="neural network", model_task="classification", features=self.parsed_sentence[1:-1], classes=classes, predicted_label=predicted_label, true_label=true_label, )

janhavi13 avatar Apr 20 '20 20:04 janhavi13

I'm guessing this is after doing the full run? doing a quick run shows this:

image

imatiach-msft avatar Apr 22 '20 15:04 imatiach-msft

@janhavi13 comment about the sentence[1:-1] is the ideal fix since we wanted the dashboard to be agnostic to the input. However, if you wanted to make this change in the dashboard, It's a relatively easy change to make in widget/ExplanationDashboard.py

rebeccaj1211 avatar May 04 '20 15:05 rebeccaj1211