Closed annahedstroem closed 2 years ago
@dilyabareeva
To clarify changes excepted in the PR, the should be reflected in the following folders:
quantus/metrics/faithfulness_metrics.py
and quantus/metrics/robustness_metrics.py
tests/metrics/test_faithfulness_metrics.py
and quantus/metrics/test_robustness_metrics.py
tests/metrics/test_faithfulness_metrics.py
and quantus/metrics/test_robustness_metrics.py
README.md
Implement Consistency (that belongs to the Robustness category) and Sufficiency (that belongs to the Sufficiency category):
• Consistency: roughly, two instances x, x0 that get the same explanation should also have the same prediction. For instance, if two different images are assigned the same explanation, e(x) = e(x 0 ) = “contains a zebra”, then their assigned labels should also be the same. • Sufficiency: if x is assigned an explanation e(x) = π that also holds for another instance x 0 (even if e(x 0 ) 6= π), then x 0 should have the same label as x.
Paper: https://arxiv.org/pdf/2202.00734.pdf