Skip to content
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

[WIP:] refactoring for tensorflow2 keras compat #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrslacklines
Copy link

I was using the Innvestigate library to perform LRP analysis of my Temporal Convolutional Network that I use for predicting fundamental frequency of speech from thousands of linguistic features. The visualisations allow me to see the relevance of feature groups (like type of syllable accent and syllable position) for intonation contours. The algorithm in Innvestigate is great and quite speedy but I found it difficult to use directly with my Tensorflow 2.0 Keras Sequential network. The reason is mainly in the import statements that you use. This PR is a potential discussion starter as I think it would be much better not to import libraries as whole paths, i.e. instead of importing tensorflow.keras.layers.convolutional.UpSampling1D we should probably just import UpSampling1D.
Also the eager execution setting in TF and the way I have implemented in my scripts do not allow some operations on tensors like list comprehensions etc. (AFAIK they are simply not yet implemented in the TF API).

If you think this is helpful at all please let me know and I will be happy to help tidy this up or we can discuss this further.

Anyways, thanks you for a great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant