Machine Learning, Python, Facebook, Hugging Face, Captum.
device = ‘cpu’ sample = “I am very excited about this project” exp_model = ExplainableTransformerPipeline(‘distilbert’, clf, device) exp_model.explain(sample) The output should look somewhat like this: Notice, that word “excited” was the biggest “driver” for the general outcome of the model as the