Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Visualization Code #7

Open
pGit1 opened this issue Mar 10, 2017 · 0 comments
Open

Error in Visualization Code #7

pGit1 opened this issue Mar 10, 2017 · 0 comments

Comments

@pGit1
Copy link

pGit1 commented Mar 10, 2017

See line 34: https://github.com/jacobgil/keras-cam/blob/master/cam.py

Shouldnt it be class_weights[1, :] instead of class_weights[:, 1]?

If this were a multiclass problem with 3 classes for instance my proposal would take the weight vector associated with that class. The way the code is now it would take the 2nd element in Class 0s weight vector, the 2nd element in Class 1's weight vector, and the 2nd element in Class 3's weight vector.

Am I missing something obvious? I looked at the class weight out put and confirmed that is what your current code is doing on line 34 which I cannot wrap my head around. I may be just confused about how CAM works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant