Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Major Refactoring of the Code Base #84

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Conversation

anushka255
Copy link
Collaborator

@anushka255 anushka255 commented Oct 31, 2024

  • Returning extra information unconditionally from all the functions and using torch exclusively.
  • Refactored the entire code base (with an exception of glmpca and model_selection for readability.

@anushka255 anushka255 marked this pull request as draft October 31, 2024 20:55
@anushka255 anushka255 added the bug Something isn't working label Nov 4, 2024
@anushka255 anushka255 removed the bug Something isn't working label Nov 4, 2024
@anushka255 anushka255 marked this pull request as ready for review November 15, 2024 17:05
@anushka255 anushka255 changed the title refactored paste.pairwise_align Major Refactoring of the Code Base Nov 15, 2024
@@ -917,31 +800,12 @@ def line_search_partial(
cost_G : float
The final cost after the update of the transport plan.
"""
combined_spatial_cost, a_gradient, b_gradient = ot.gromov.init_matrix(
Copy link
Contributor

Choose a reason for hiding this comment

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

This function had its own implementation of computing gradient and cost, and was being passed as a parameter to the generic conditional gradient fn from ot, which then calls this function for line search. Now the cost fn and gradient fn are being passed as parameters.

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

Successfully merging this pull request may close these issues.

2 participants