NLP, Interpretability, Machine Learning, Pytorch, Captum.
x = self.embeddings(x) x = self.pos_encoder(x) x = self.encoder(x) x = x[:, 0, :] return x def forward(self, x): x = self.do(self.encode(x)) x = self.linear(x) return x That is basically it for the model part, pretty classic for a text classification pipeline. Interpretability: We will be using a