Skip to content

Instantly share code, notes, and snippets.

View ArrasL's full-sized avatar

Leila Arras ArrasL

View GitHub Profile
@ArrasL
ArrasL / evaluate.py
Last active April 21, 2024 10:01
Code to evaluate XAI explanation methods (as in https://arxiv.org/abs/2003.07258).
"""
Code to evaluate explanation methods (aka heatmaps/XAI methods) w.r.t. ground truths, as in:
Towards Ground Truth Evaluation of Visual Explanations, Osman et al. 2020
https://arxiv.org/pdf/2003.07258.pdf
(code by Leila Arras, Fraunhofer HHI - Berlin, Germany)
"""
from typing import Dict, List
import os, json
import numpy as np