-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MNIST Example returns difference in predictions: 1.0 #48
Comments
Hi Armen, Did you load the model using the theano or the tensorflow backend? |
Hi @AvantiShri, |
Are you using the version of DeepLIFT that is on the master branch, or the version that is on the dev-tf branch? The master branch is intended for models trained with the theano backend. Also, the keras2compat branch is designed for keras 2.0 models, but I have not updated the example notebooks on that branch. Do you specifically want to use keras 1.2? If not, I can prioritize getting the example notebooks on the keras 2.0 branch and just making that into the master branch. |
I'm using master branch. Ultimately, I'm trying to reproduce the examples before doing any further work. I see, let me try to use theano backend & try to reproduce the MNIST & Genomics example notebooks. It would be nice to get examples working with keras 2.0, but it's less of a priority so long as I get the above to work. Out of curiosity, have you gotten DeepLift to work w/ Tensorflow backend? If so, were you using Keras 1.2 or 2.0? |
I’ve gotten DeepLIFT to work with the tensorflow backend with both keras 2.0 and keras 1.2. DeepLIFT for keras 2.0 and the tensorflow backend is implemented on the keras2compat branch. DeepLIFT for keras 1.2 with tensorflow is on the dev-tf branch. |
Excellent, thanks for the clarification, I'll give it a test drive. |
Btw, I added an example notebook that works on Keras 2 to the keras2compat branch: https://github.com/kundajelab/deeplift/blob/keras2compat/examples/mnist/MNIST_replicate_figures.ipynb - let me know if you have any issues. |
I'm using Google Collab GPU runtime to run MNIST example using Keras 1.2.0.
This snippet from MNIST Example
However, I'm getting the following result:
I used the provided shell script to download .h5 model file.
Furthermore, the
Compute Importance Scores
snippet results in the following error:The text was updated successfully, but these errors were encountered: