Skip to content

[WIP] Partial optimal transport 1d solver #741

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

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
aef4b55
Implemented the partial optimal transport 1d solver from Chapel & Tav…
rtavenar Jul 1, 2025
c36a45d
bugfix in cythonize
rtavenar Jul 1, 2025
5a6ef86
yet another bugfix in setup.py
rtavenar Jul 1, 2025
978e0f4
relative imports
rtavenar Jul 1, 2025
189a98b
make partial_wasserstein_1d visible at the subpackage level
rtavenar Jul 1, 2025
e873da6
minor fix
rtavenar Jul 1, 2025
ea5f59b
add tests
rtavenar Jul 2, 2025
d0689aa
fix data gen in test
rtavenar Jul 2, 2025
ae504fa
bugfix
rtavenar Jul 2, 2025
5214d4b
make costs double
rtavenar Jul 2, 2025
8245cd9
renaming
rtavenar Jul 2, 2025
8a78d6d
minor
rtavenar Jul 2, 2025
796d09d
remove unused log arg
rtavenar Jul 2, 2025
a0c241d
check precommit
rtavenar Jul 2, 2025
5b37670
better docs and test
rtavenar Jul 2, 2025
6ef4ca3
linting
rtavenar Jul 2, 2025
7eee412
info
rtavenar Jul 2, 2025
b68aa7d
empty commit for co-authorship
rtavenar Jul 2, 2025
843324c
add gallery example
rtavenar Jul 2, 2025
ff42483
minor refactor
rtavenar Jul 2, 2025
ec7d9c1
bugfix: use heapq also at init step
rtavenar Jul 2, 2025
bbc930b
define a function for plotting
rtavenar Jul 2, 2025
2ba8d56
bugfix
rtavenar Jul 2, 2025
9958a31
example fig tweaking
rtavenar Jul 2, 2025
27ec673
minor docs
rtavenar Jul 2, 2025
f11575d
figsize
rtavenar Jul 3, 2025
98967fb
minor
rtavenar Jul 3, 2025
63b5c05
removed pure python types as much as possible (yet to be tested prope…
rtavenar Jul 3, 2025
6ccad78
bugfix in insert_new_chain
rtavenar Jul 4, 2025
11ab6b3
added tests
rtavenar Jul 4, 2025
eba542d
should not change anything
rtavenar Jul 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
figsize
  • Loading branch information
rtavenar committed Jul 3, 2025
commit f11575d08e3947f98204172c36638b9966d5450c
4 changes: 2 additions & 2 deletions examples/unbalanced-partial/plot_partial_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def plot_partial_transport(
x_b = np.sort(np.random.uniform(0, 10, size=n))

# Plot original distributions
plt.figure(figsize=(10, 2))
plt.figure(figsize=(6, 2))
plot_partial_transport(plt.gca(), x_a, x_b)
plt.show()

Expand All @@ -73,7 +73,7 @@ def plot_partial_transport(

# Visualize all partial transport plans
for k in range(n):
plt.figure(figsize=(10, 2))
plt.figure(figsize=(6, 2))
plot_partial_transport(
plt.gca(),
x_a,
Expand Down
Loading