XAI-Multivariate-Time-Series
April 17, 2021 ยท View on GitHub
XAI-Multivariate-Time-Series
Installation
This project is using pipenv to manage and organize the libraries. Before being up and running, please make sure to have pipenv in your system and do the following:
pipenv shell
pipenv install
Basic Usage
from feature_extraction.CAMs import CAM
from utils.visualization import CAMFeatureMaps
feature_maps = CAMFeatureMaps(CAM)
feature_maps.load(extracting_model,extracting_module,targeting_layer)
mask = feature_maps.show(X_test[0], None)
feature_maps.map_activation_to_input(mask)
Result of CAM explaining XCM ReLU 1 Conv2d Branch
Mask

Mapping mask onto input
