summaryrefslogtreecommitdiff
path: root/examples/gromov/plot_barycenter_fgw.py
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2023-06-14 16:52:13 +0200
committerGard Spreemann <gspr@nonempty.org>2023-06-14 16:52:13 +0200
commit2b51c7bfcf54d7e17ac7c2514f54408543cbe126 (patch)
treebaf00cc603ceabad00626259eec898e6747d016c /examples/gromov/plot_barycenter_fgw.py
parenta49f648b0b07737f7ef315fb83d8f78871780281 (diff)
parent96788a3fe5601e4c3f49b592aa0d9c034247862e (diff)
Merge branch 'dfsg/latest'
Diffstat (limited to 'examples/gromov/plot_barycenter_fgw.py')
-rw-r--r--examples/gromov/plot_barycenter_fgw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gromov/plot_barycenter_fgw.py b/examples/gromov/plot_barycenter_fgw.py
index 556e08f..dc3c6aa 100644
--- a/examples/gromov/plot_barycenter_fgw.py
+++ b/examples/gromov/plot_barycenter_fgw.py
@@ -174,7 +174,7 @@ A, C, log = fgw_barycenters(sizebary, Ys, Cs, ps, lambdas, alpha=0.95, log=True)
# -------------------------
#%% Create the barycenter
-bary = nx.from_numpy_matrix(sp_to_adjency(C, threshinf=0, threshsup=find_thresh(C, sup=100, step=100)[0]))
+bary = nx.from_numpy_array(sp_to_adjency(C, threshinf=0, threshsup=find_thresh(C, sup=100, step=100)[0]))
for i, v in enumerate(A.ravel()):
bary.add_node(i, attr_name=v)