Visualzation methods that help developers to realize the deep network
Project description
torchxai
Visualzation methods that help developers to realize the deep network
Getting Start
# clone the repo
git clone https://github.com/jimmylin0979/torchxai.git
cd torchxai
# install requirements and CVNets package
pip install -r requirements.txt
pip install --editable .
Visualization Method
1. Centered Kernel Alignement (CKA)
Reference: ICML 2019 Similarity of Neural Network Representations Revisited
CKA can reveal pathology in neural networks representations.
According to this fetaure, it's recommend to use CKA to analyze whether two networks acts similar, or use to reveal how the layer interacts with each other in one network.
Please have a look on example at example/CKA.ipynb
2. Loss Landscape
Reference: NIPS 2018 Visualizing the Loss Landscape of Neural Nets
Topographically map of the loss function in the parameter space.
The generated loss landscape can help visualize the optimization process, identify local minima and saddle points, and understand the generalization ability of the model.
Please have a look on example at example/Landscape.ipynb
3. Receptive Field
Reference: NIPS 2016 Understanding the Effective Receptive Field in Deep Convolutional Neural Networks
Receptive field refers to the portion of an input image that a neuron in a CNN is sensitive to. In other words, it represents the area of the input image that contributes to the activation of a particular neuron.
The receptive field of a neuron can be visualized as a region in the input image that, when activated, causes the neuron to fire.
Please have a look on example at example/ERF.ipynb
RoadMap
- Finish setup.py, and register on pypi platform
- Allow project to install with
-e
flags inpip install
command - Automatic deploy with Github Actions
- Method CKA
- Linear-based CKA
- Kernel-based CKA
- Method Loss Landscape
- Method Receptive Field
- Method CAM
Reference
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
File details
Details for the file torchxai-0.0.4.tar.gz
.
File metadata
- Download URL: torchxai-0.0.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fde3f471186fd0b9f8436669992dca52475464a9e04921c0d509d7c8c34dd33 |
|
MD5 | e43e9a40529b26ebdf0318abd188fa07 |
|
BLAKE2b-256 | 3a44d0232e62a8c55ac59bb11375127641ca60c24bbd1f8da68c90fd0aaca7d0 |
File details
Details for the file torchxai-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: torchxai-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ab6d52f8028bd7a8849af9ff5ff4c8ac78214d464051ca9fb6850eda079888 |
|
MD5 | 90568b59cd55c26570a47daa94b3c2b0 |
|
BLAKE2b-256 | fbe208153aa61a0918c712589aabc2f2a7744059f7632a897274cdf6628a96f1 |