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

Dynamic soft margin loss & Ranked List Loss #659

Merged

Conversation

domenicoMuscill0
Copy link
Contributor

I have implemented these two loss functions. About the DSM loss i have added the possibility to use labels in case the user wants to, but it can be easily used as a self-supervised loss function

@KevinMusgrave KevinMusgrave changed the base branch from master to dev October 19, 2023 00:11
@KevinMusgrave
Copy link
Owner

Ignore the crashing "trainers" workflow.

Are the losses tests passing on your system?

@domenicoMuscill0
Copy link
Contributor Author

The losses's tests pass the majority of the time though sometimes i get the same assertion error; those times the difference between the correct loss and my loss is of 3e-4, but since other losses i created showed the same behavior (provided that the workflow tests passed everytime without any problem) i kept pushing to github.
I have checked the actual value of the tensors with the debugger and besides some small (approximation) errors the quantities are equal.

@KevinMusgrave KevinMusgrave merged commit a69a551 into KevinMusgrave:dev Dec 12, 2023
19 checks passed
@KevinMusgrave
Copy link
Owner

Thank you @domenicoMuscill0!

@domenicoMuscill0
Copy link
Contributor Author

domenicoMuscill0 commented Dec 15, 2023 via email

@KevinMusgrave
Copy link
Owner

Greetings, may i point out that the two issues related to this pull request
are still open?

Thanks for reminding me. I now uploaded v2.4.0 and closed those issues.

Also, is there any high priority issue/algorithm that you
would prefer me to put effort on? I was looking at the ProxyNCA++ loss
function, but if there is something else i can change quite easily.

ProxyNCA++ might be good, but:

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

Successfully merging this pull request may close these issues.

2 participants