We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc930b commit 2ba8d56Copy full SHA for 2ba8d56
examples/unbalanced-partial/plot_partial_1d.py
@@ -34,7 +34,7 @@ def plot_partial_transport(
34
if marginal_costs is not None:
35
k = len(marginal_costs)
36
ax.set_title(
37
- f"Partial Transport - k = {k}, Cumulative Cost = {marginal_costs.sum():.2f}"
+ f"Partial Transport - k = {k}, Cumulative Cost = {sum(marginal_costs):.2f}"
38
)
39
else:
40
ax.set_title("Original 1D Discrete Distributions")
0 commit comments