Skip to content

Sinkhorn loss implementation#809

Merged
GiovanniCanali merged 2 commits into
mathLab:0.3from
guglielmopadula:0.3-reg
Jun 19, 2026
Merged

Sinkhorn loss implementation#809
GiovanniCanali merged 2 commits into
mathLab:0.3from
guglielmopadula:0.3-reg

Conversation

@guglielmopadula

Copy link
Copy Markdown
Member

Description

This PR fixes #808 by adding a Sinkhorn loss implementation (the loss init file is modified, a new class, SinkhornLoss, is created along with the necessary tests).

Checklist

  • Code follows the project’s Code Style Guidelines
  • Tests have been added or updated
  • Documentation has been updated if necessary
  • Pull request is linked to an open issue

@guglielmopadula guglielmopadula requested review from a team and dario-coscia as code owners June 17, 2026 10:22
@GiovanniCanali GiovanniCanali added enhancement New feature or request pr-to-fix Label for PR that needs modification 0.3 Related to 0.3 release labels Jun 18, 2026
@GiovanniCanali GiovanniCanali linked an issue Jun 18, 2026 that may be closed by this pull request

@GiovanniCanali GiovanniCanali left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @guglielmopadula for the valuable contribution. The code and overall logic look good, only a few minor comments need to be addressed before merging.

Comment thread docs/source/_rst/loss/sinkhorn_loss.rst Outdated
Comment thread docs/source/_rst/loss/sinkhorn_loss.rst
Comment thread pina/_src/loss/sinkhorn_loss.py Outdated
Comment thread pina/_src/loss/sinkhorn_loss.py Outdated
Comment thread pina/_src/loss/sinkhorn_loss.py Outdated
Comment thread pina/_src/loss/sinkhorn_loss.py
Comment thread tests/test_loss/test_sinkhorn_loss.py Outdated
Comment thread tests/test_loss/test_sinkhorn_loss.py Outdated
Comment thread tests/test_loss/test_sinkhorn_loss.py Outdated
Comment thread pina/_src/loss/sinkhorn_loss.py Outdated
@guglielmopadula

Copy link
Copy Markdown
Member Author

I have fixed the code according to instructions. Thank you!

Co-authored-by: GiovanniCanali <giovanni.canali98@yahoo.it>
@GiovanniCanali GiovanniCanali changed the title Sinkhorn loss implementatin Sinkhorn loss implementation Jun 19, 2026
@GiovanniCanali GiovanniCanali added pr-to-review Label for PR that are ready to been reviewed and removed pr-to-fix Label for PR that needs modification labels Jun 19, 2026
@GiovanniCanali GiovanniCanali merged commit 10d9746 into mathLab:0.3 Jun 19, 2026
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.3 Related to 0.3 release enhancement New feature or request pr-to-review Label for PR that are ready to been reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Sinkhorn loss implementation

3 participants