Skip to content

Instantly share code, notes, and snippets.

View QRcode1337's full-sized avatar
:electron:
Time travel

GhostSec QRcode1337

:electron:
Time travel
View GitHub Profile
@QRcode1337
QRcode1337 / gematria.js
Created April 7, 2021 20:30
Gematria Primus conversion as a node module(?)
function swap(json) {
var ret = {};
for (var key in json) {
ret[json[key]] = key;
}
return ret;
}
module.exports.r2l = {
"ᚠ": "F",
@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