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 while using Jaccard loss #6

Closed
Dor256 opened this issue Mar 6, 2019 · 1 comment
Closed

error while using Jaccard loss #6

Dor256 opened this issue Mar 6, 2019 · 1 comment

Comments

@Dor256
Copy link

Dor256 commented Mar 6, 2019

When i try to train with the given loss the following error accord : ValueError: An operation has None for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval.

@Golbstein
Copy link
Owner

The Jaccard index isn't a derivable function, therefore you can't use it as a loss.
Try sticking to the categorical_crossentropy or you're welcome to change the jaccard function to be derivable and share the code with us

@Dor256 Dor256 closed this as completed May 28, 2020
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

2 participants