Troubleshooting and analysis 2 – AI Governance
We can then see the visual interpretation (Figure 14.1) of which tokens impact the final decision the most: # Sample tweet to explaintweet = “I love using the new feature!So helpful.”# Generate the explanationexp = explainer.explain_instance(tweet, predictor, num_features=5, top_labels=3)exp.show_in_notebook() In this case, num_features determines how many features the explainer should use to describe the prediction. […]