Machine Learning, Python, Facebook, Hugging Face, Captum.
part of the sequence is equal to PAD tokens list multiplied by seq_len-2. The baseline should be the same size as the input, so this trick allows us to achieve it. Image #2. Pseudocode 2. Generate linear transformation from baseline to the input sequence. This step can be wonderfully visualized by