mertyg / debug-mistakes-cce Goto Github PK
View Code? Open in Web Editor NEWMeaningfully debugging model mistakes with conceptual counterfactual explanations. ICML 2022
License: MIT License
Meaningfully debugging model mistakes with conceptual counterfactual explanations. ICML 2022
License: MIT License
Hello,
I'm a PhD student working on XAI. And I came across your paper so I decided to test the provided implementation, which I thank you for. The code is very clear and easy to understand !
While studying the code, I noticed the following:
In cce_utils.py, line 68, shouldn't W_clamp_min be computed as
I'm saying this based on equation (6) provided in section 3.2 of your paper. Please correct me if I'm wrong or if I misunderstood something.
Thank you in advance!
Excellent work! Can I know when you will release the code?
First of all, thank you for your work.
I am re-implementing your codes for spurious detection experiments.
By the way, I found that the wrong evaluation images are used.
Load image list
from dataset import MetashiftManager
dataset_name = "bear-bird-cat-dog-elephant:dog(snow)"
manager = MetashiftManager()
classes, train_domain = dataset_name.split(":")
classes = classes.split("-")
num_classes = len(classes)
shift_class = train_domain.split("(")[0]
spurious_concept = train_domain.split("(")[1][:-1].lower()
print(f"Shift Class: {shift_class}, Spurious Concept: {spurious_concept}")
Result:
Shift Class: dog, Spurious Concept: snow
Get image list for all classes
class_images = manager.get_class_ims(classes)
len(class_images["dog"])
Result:
2580
Check images in "dog" class
from PIL import Image
Image.open(class_images["dog"][2077])
from PIL import Image
Image.open(class_images["dog"][1616])
For classification, there is no "dog" in an image cropped from this image.
Many images in class "dog" are unrelated to class "dog".
Please let me know the reason.
Is your experiment wrong?
I found that the wrong images contain hotdogs...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.