Seth-Park / MultimodalExplanations

Code release for Park et al. Multimodal Multimodal Explanations: Justifying Decisions and Pointing to the Evidence. in CVPR, 2018
BSD 2-Clause "Simplified" License
49 stars 10 forks source link

EMD and Rank Correlation calculation #5

Closed anshumanvenkatesh closed 5 years ago

anshumanvenkatesh commented 5 years ago

Does this repo contain code to calculate the Earth Mover Distance (EMD) and Rank Correlation as given in the paper? If not, how can I go about calculating them?

Seth-Park commented 5 years ago

This repo does not contain code for evaluating the attention maps. We use the following packages to compute EMD and Rank Correlation:

EMD: https://github.com/wmayner/pyemd Rank Correlation: https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.stats.spearmanr.html

anshumanvenkatesh commented 5 years ago

Thank you!