Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.19 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.19 KB

develop lint status develop test status

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

Mask Image

Mapping mask onto input

Mapped Image