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

Weighted Cross Entropy loss function #10

Open
Jorisfournel opened this issue Dec 15, 2017 · 1 comment
Open

Weighted Cross Entropy loss function #10

Jorisfournel opened this issue Dec 15, 2017 · 1 comment

Comments

@Jorisfournel
Copy link

Hi,
First thank you for this implementation.
I didn't test it yet but I'm about to, for custom data, a 3 classes segmentation task,
where implementing a weighted cross entropy function should be determinant.
What changes in the code should be done to do that ?
(I don't master tf yet, I worked on caffe before, a tip would be gratefuly taken)

Thanks in advance !

@eragonruan
Copy link
Owner

@Jorisfournel in nets/model.py, you should modify this function. tf provide weighted cross entropy api, you can find it here

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