All Projects → IBM → Contrastive-Explanation-Method

IBM / Contrastive-Explanation-Method

Licence: Apache-2.0 license
Codes for reproducing the contrastive explanation in “Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives”

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Contrastive-Explanation-Method

commonsense-rl
Knowledge-Aware RL agents with Commonsense Reasoning
Stars: ✭ 62 (+29.17%)
Mutual labels:  ibm-research-ai
CLEVER-Robustness-Score
Codes for reproducing the robustness evaluation scores in “Evaluating the Robustness of Neural Networks: An Extreme Value Theory Approach,” ICLR 2018 ​​​​​​​
Stars: ✭ 36 (-25%)
Mutual labels:  ibm-research-ai
science-result-extractor
No description or website provided.
Stars: ✭ 59 (+22.92%)
Mutual labels:  ibm-research-ai
EAD-Attack
Codes for reproducing the white-box adversarial attacks in “EAD: Elastic-Net Attacks to Deep Neural Networks via Adversarial Examples,” AAAI 2018
Stars: ✭ 22 (-54.17%)
Mutual labels:  ibm-research-ai
self
Intu is a Cognitive Embodiment Middleware for AI on the edge.
Stars: ✭ 28 (-41.67%)
Mutual labels:  ibm-research-ai
bridging-resolution
No description or website provided.
Stars: ✭ 12 (-75%)
Mutual labels:  ibm-research-ai

Contrastive-Explanation-Method

Codes for reproducing the contrastive explanation in “Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives

To find the pertinent positive (PP) of an instance,

python3 main.py -i 2953 --mode PP --kappa 10 --gamma 100

This would find the PP of image ID 2953 in the test images from the MNIST dataset.

From left to right: the original image and the pertinent positive component. This PP in Image 2953 is sufficient to be classified as 5.

To find the pertinent negative (PN) of an instance,

python3 main.py -i 340 --mode PN --kappa 10 --gamma 100

This would find the PN of image ID 340 in the test images from the MNIST dataset.

From left to right: the original image, the pertinent negative component and the image composed of the original image and PN. If we add PN to Image 340, it would be classified as 5.

The argument kappa (confidence lebel) and gamma (regularization coefficient of autoencoder) are tuning parameters for the optimization setup. Both PP and PN are used to explain the model prediction results. For more details, please refer to the paper.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].