Skip to content

Commit e569c66

Browse files
committed
Add partial_wasserstein function to API
Introduces the partial_wasserstein function to the Julia API, wrapping pot.partial.partial_wasserstein2. Also updates the package version to 0.1.9 and exports the new function.
1 parent 984f0ce commit e569c66

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PythonOT"
22
uuid = "3c485715-4278-42b2-9b5f-8f00e43c12ef"
33
authors = ["David Widmann"]
4-
version = "0.1.8"
4+
version = "0.1.9"
55

66
[deps]
77
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"

src/PythonOT.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export emd,
1515
empirical_sinkhorn_divergence,
1616
mm_unbalanced,
1717
entropic_partial_wasserstein,
18+
partial_wasserstein,
1819
partial_wasserstein2
1920

2021
const pot = PyCall.PyNULL()

src/lib.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ function entropic_partial_wasserstein(a, b, M, reg; kwargs...)
587587
return pot.partial.entropic_partial_wasserstein(a, b, M, reg; kwargs...)
588588
end
589589

590+
function partial_wasserstein(a, b, M; kwargs...)
591+
return pot.partial.partial_wasserstein2(a, b, M; kwargs...)
592+
end
593+
590594
function partial_wasserstein2(a, b, M; kwargs...)
591595
return pot.partial.partial_wasserstein2(a, b, M; kwargs...)
592596
end

0 commit comments

Comments
 (0)