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

Use xlogy function in cross-entropy definition #373

Closed
Tracked by #573
ablaom opened this issue Jul 16, 2020 · 1 comment
Closed
Tracked by #573

Use xlogy function in cross-entropy definition #373

ablaom opened this issue Jul 16, 2020 · 1 comment
Assignees
Labels

Comments

@ablaom
Copy link
Member

ablaom commented Jul 16, 2020

Even if eps=0, there are some NaN 's that should be zero, namely "0*log(0)" should be "0". See FluxML/Flux.jl@480473a here for how this was fixed elsewhere.

@ablaom
Copy link
Member Author

ablaom commented Jun 8, 2021

As pointed out by @giordano, our implementation of cross-entropy does not involve products, so this issue is moot.

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

No branches or pull requests

2 participants