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

Fix broadcasting in InfoNCE loss #86

Merged
merged 6 commits into from
Oct 3, 2023
Merged

Fix broadcasting in InfoNCE loss #86

merged 6 commits into from
Oct 3, 2023

Conversation

stes
Copy link
Member

@stes stes commented Oct 3, 2023

This PR fixes #48 in the numerically stabilized version of the InfoNCE loss function. It also adds numerical tests for the infoNCE implementation.

Note: Although we verified that this change does not meaningfully influence the algorithm outputs (e.g., in the demo notebooks), it is not advised to do model comparisons across models trained before (up to 0.3.0rc1) and after (from 0.3.0rc2 onwards) this modification.

Thanks to @mudphudwang for flagging.

Fix #48
Fix https://github.com/AdaptiveMotorControlLab/CEBRA-dev/pull/658

@cla-bot cla-bot bot added the CLA signed label Oct 3, 2023
@stes stes self-assigned this Oct 3, 2023
@stes stes force-pushed the stes/fix-infonce branch from b9959f6 to eac6367 Compare October 3, 2023 13:50
@stes stes requested a review from MMathisLab October 3, 2023 14:19
@MMathisLab MMathisLab merged commit 8520b9b into main Oct 3, 2023
8 checks passed
@stes stes mentioned this pull request Oct 3, 2023
2 tasks
@MMathisLab MMathisLab deleted the stes/fix-infonce branch October 7, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InfoNCE Implementation
2 participants