Trusted-AI / AIX360

Interpretability and explainability of data and machine learning models
https://aix360.res.ibm.com/
Apache License 2.0
1.62k stars 305 forks source link

Add Matching Explainer Algorithm #147

Closed fabianlim closed 2 years ago

fabianlim commented 2 years ago

Summary

Adding a White Box Explainer for Matchings, as described in the upcoming ICML 2022 publication.

Fabian Lim, Laura Wynter, Shiau Hong Lim. 2022. "Order Constraints in Optimal Transport". https://arxiv.org/abs/2110.07275.

Algorithm

Given a matching, provide an explaination in terms of returning alternate matchings that each focus on a sparse set of salient matches.

Package Dependencies

In setup.py we have the following dependency that is installed as an egg

In examples/matching/matching-pairs-of-sentences.ipynb we ask the user to install the below packages in order to execute the demo

Example

An NLP-based example inspired from one of the figures in the paper is provided

TODO

lgtm-com[bot] commented 2 years ago

This pull request introduces 4 alerts and fixes 2 when merging 83ee5e7937f5b727e242f2c57faffc5ccd206579 into e06d186eaa67a9f42b183372933e9bbad64d8fd5 - view on LGTM.com

new alerts:

fixed alerts:

vijay-arya commented 2 years ago

@fabianlim thanks! for integrating the optimal transport algorithm to aix360. The PR is merged.