Repository for Python implementations of the algorithms outlined in Searching for explanations of black-box classifiers in the space of semantic queries by Jason Liartis, Edmund Dervakos, Orfeas Menis-Mastromichalakis, Alexandros Chortaras and Giorgos Stamou, under review for the Special Issue on The Role of Ontologies and Knowledge in Explainable AI of the Semantic Web Journal.
python3 kgrules_h.py --dataset {mnist, clevrhans, mushrooms} --merge-operation {greedy-mathcing, qlcs} --ontology-fname /path/to/ontology --positives-fname /path/to/positive/examples --output /path/to/write/output/queries
Add parameter threshold
to run the KGrules-HT variation:
python3 kgrules_h.py --dataset {mnist, clevrhans, mushrooms} --merge-operation {greedy-mathcing, qlcs} --ontology-fname /path/to/ontology --positives-fname /path/to/positive/examples --output /path/to/write/output/queries --threshold 20