Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

[Question] about the difference between the paper and implementation #17

Open
tczhangzhi opened this issue Apr 29, 2021 · 0 comments
Open

Comments

@tczhangzhi
Copy link

Hi, there!

Thanks for your great work, it helps a lot and the application of siamese networks for one-shot learning also deserves further research.

However, I find you implement the loss function as binary_crossentropy, in the following way:

self.model.compile(loss='binary_crossentropy', metrics=['binary_accuracy'],

I suppose it is the expected behavior but the paper (https://www.cs.cmu.edu/~rsalakhu/papers/oneshot1.pdf, oneshot1.pdf) says, the former part of the proposed loss function is:
image
which seems to be the opposite number of binary_crossentropy and confuses me a lot. Does the author mean:
image

Or could you please provide some more explanation?

Thanks&Best Regards

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

No branches or pull requests

1 participant