Skip to content

[MRG] Clarify error message of ot.solve_sample for lazy regularized unbalanced OT - #941

Open
alexandra-dinu0504 wants to merge 3 commits into
PythonOT:masterfrom
alexandra-dinu0504:fix-unbalanced-lazy-error-message
Open

alexandra-dinu0504 wants to merge 3 commits into
PythonOT:masterfrom
alexandra-dinu0504:fix-unbalanced-lazy-error-message

Conversation

@alexandra-dinu0504

@alexandra-dinu0504 alexandra-dinu0504 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

In ot.solve_sample, calling the lazy solver with regularization and unbalanced OT (lazy=True, reg>0, unbalanced set) raised:

NotImplementedError: Not implemented unbalanced_type="KL" with regularization

This suggests that regularized unbalanced OT is not supported, when in fact it is with lazy=False. The limitation comes from the lazy solver. The message now shows:

NotImplementedError: Regularized lazy solver not implemented for unbalanced OT
  • I have read the CONTRIBUTING document.
  • The documentation is up-to-date with the changes I made (check build artifacts).
  • All tests passed, and additional code has been covered with new tests.
  • I have added the PR and Issue fix to the RELEASES.md file.

@alexandra-dinu0504 alexandra-dinu0504 changed the title Fix unbalanced lazy error message [MRG] Clarify error message of ot.solve_sample for lazy regularized unbalanced OT Nov 27, 2026

This branch has not been deployed

No deployments
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.

1 participant