A meta-tool for cross-framework access to PyTorch and Tensorflow visualisation methods
Project description
Cross-Framework Introspection
Cross-Framework Introspection is a tool for accessing introspection methods for neural networks regardless of the framework in which the neural network has been built. It is easily extendable and currently supports models from TensorFlow 2.0 and PyTorch in combination with methods from Captum and tf-keras-vis. For more details, see the project report.
Installation
The latest version of metaNNvis can be installed via pip:
pip install metaNNvis
Usage
For instructions on how to use cross-framework introspection and how to extend it by new methods, see the user guide.
Available methods
Cross-Framework Introspection currently supports most methods from Captum and all methods from tf-keras-vis. The supported methods are:
Method | Category |
---|---|
Captum | |
Integrated Gradients | primary, layer, neuron |
Saliency | primary |
DeepLift | primary, layer, neuron |
GradientShap | primary, layer, neuron |
Input X Gradient | primary |
Gradient X Activation | layer |
Deconvolution | primary, neuron |
Feature Ablation | primary, layer, neuron |
Feature Permutation | primary |
Conductance | layer, neuron |
Layer Activation | layer |
GradCAM | layer |
Neuron Gradient | neuron |
tf-keras-vis | |
Activation Maximization | feature visualization |
Vanilla Saliency / SmoothGrad | attribution |
GradCAM | attribution |
GradCAM++ | attribution |
ScoreCAM | attribution |
LayerCAM | attribution |
Currently not supported are:
Method | Category |
---|---|
Captum | |
DeepLiftShap | primary, layer, neuron |
Guided Backpropagation | primary, neuron |
Guided GradCAM | primary |
Occlusion | primary |
Shapley Value Sampling | primary |
Lime | primary |
KernelShap | primary |
Layer Relevance Propagation | primary, layer |
Internal Influence | layer |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for metannvis-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c9ce4e958a074cfeea9a5f8edfbe2f4ce5e0ade4ae4e3996c6c7e77f1f75827 |
|
MD5 | de639dea3c91eec3faaa3e98f274c6f6 |
|
BLAKE2b-256 | ac6a0c80b5042f688a3ab7d6745de272dcae0492c3abd777d00b9ecec7fbc26f |