Giter VIP home page Giter VIP logo

attentionexplanation's People

Contributors

dependabot[bot] avatar successar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

attentionexplanation's Issues

dataset

how can i get the ADR Tweets?

Requesting to upload cnn.tar.gz

Hi Sarthak,
In your preprocess/CNN.ipynb, seems like the url http://cs.stanford.edu/~danqi/data/cnn.tar.gz is not valid anymore because of which the script is crashing. Can you upload that file (on Google Drive or elsewhere). I am not able to find it anywhere.

Thanks in advance

Some clarification regarding QA experiments

Hi Sarthak,
I am finding it hard to understand that how the value of output_size over here is coming out to be 36 for babI dataset with encoder as lstm. Can you please provide an explanation?

Thanks in advance

Python & Dependency Versions

Hello,
I went through the setup of this paper for replication and wanted to share my experience. 3 years have passed since this repository was updated and a lot of versions changed in the software world...

Running the mentioned dependency versions seem to not work on python 3.8 or higher. Version 3.7 is required.

This project requires compiling pytorch from source master branch or use pytorch-nightly. We use features that are not in stable release. It also requires installation of torchtext version 0.4.0 from source.

The mentioned features are now available from pytorch 1.1.0 onwards. Installing via pip install torch===1.1.0 torchtext===0.4.0 -f https://download.pytorch.org/whl/torch_stable.html works and the dependencies could be added to the requirements.txt .

However, running this version in google colab with a gpu does not work (as of 19.01.2023) but torch===1.2.0+cu92 can be used instead (it just gives a deprecation warning). I did not test newer versions of pytorch.

Running the project with the above mentioned setup yields an additional error from allennlp:

ArrayField.empty_field: return type `None` is not a `<class 'allennlp.data.fields.field.Field'>`.

The solution, pip install overrides==3.1.0, mentioned in the following issue allenai/specter#27 fixes the problem.

I do not expect the authors to fix the repository and in general I want to applaud the reproducability and setup of the code. I am just writing this in the hope that the next person that stumbles on these problems can fix them faster. Maybe I have the time myself for a pull request and to verify once more that a new requirements file works.

Question about Feature Importance Measures

Dear Mr. Jain,

thanks for this interesting work! If attention is really explanation has been a question that I have posed to my self so often and I'm glad you did research in this field. I like how you setup your structured experiments with the two assumptions. I'm currently doing research with a focus on explainability and I have a quesition for you: Could you please clarify, what exact feature importance techniques you chose? You write that you used gradient based, and leave one out measures.

Browsing your code I found this line for gradient based:

def gradient_mem(self, data) :

Does that mean that you backpropagate the gradient and then multiply it with the input? And this is one of the gradient based methods?

So far, I haven't found the code for the leave one out measure, but I'll keep searching for a bit.

Maybe you can help me clarify this here. Or even link to papers that you've implemented for your experiments.

Thanks in advance!
Sincerely,
Maike Rees

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.