Skip to content

Commit b32f986

Browse files
Circle CICircle CI
authored andcommitted
CircleCI update of dev docs (2024).
1 parent d32f335 commit b32f986

239 files changed

Lines changed: 728497 additions & 728447 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
Binary file not shown.

‎master/_downloads/bec8f0488deafecfab368c0f6ffeb12f/plot_barycenter_fgw.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106
"outputs": [],
107107
"source": [
108-
"Cs = [shortest_path(nx.adjacency_matrix(x, dtype=np.int_)) for x in X0]\nps = [np.ones(len(x.nodes())) / len(x.nodes()) for x in X0]\nYs = [np.array([v for (k, v) in nx.get_node_attributes(x, 'attr_name').items()]).reshape(-1, 1) for x in X0]\nlambdas = np.array([np.ones(len(Ys)) / len(Ys)]).ravel()\nsizebary = 15 # we choose a barycenter with 15 nodes\n\nA, C, log = fgw_barycenters(sizebary, Ys, Cs, ps, lambdas, alpha=0.95, log=True)"
108+
"Cs = [shortest_path(nx.adjacency_matrix(x).todense()) for x in X0]\nps = [np.ones(len(x.nodes())) / len(x.nodes()) for x in X0]\nYs = [np.array([v for (k, v) in nx.get_node_attributes(x, 'attr_name').items()]).reshape(-1, 1) for x in X0]\nlambdas = np.array([np.ones(len(Ys)) / len(Ys)]).ravel()\nsizebary = 15 # we choose a barycenter with 15 nodes\n\nA, C, log = fgw_barycenters(sizebary, Ys, Cs, ps, lambdas, alpha=0.95, log=True)"
109109
]
110110
},
111111
{

‎master/_downloads/e73d3f2ce7664d275c417c57f2e3495d/plot_barycenter_fgw.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def graph_colors(nx_graph, vmin=0, vmax=7):
161161

162162
#%% We compute the barycenter using FGW. Structure matrices are computed using the shortest_path distance in the graph
163163
# Features distances are the euclidean distances
164-
Cs = [shortest_path(nx.adjacency_matrix(x, dtype=np.int_)) for x in X0]
164+
Cs = [shortest_path(nx.adjacency_matrix(x).todense()) for x in X0]
165165
ps = [np.ones(len(x.nodes())) / len(x.nodes()) for x in X0]
166166
Ys = [np.array([v for (k, v) in nx.get_node_attributes(x, 'attr_name').items()]).reshape(-1, 1) for x in X0]
167167
lambdas = np.array([np.ones(len(Ys)) / len(Ys)]).ravel()
-924 Bytes
-53 Bytes
24 Bytes
-7.64 KB
-412 Bytes
-20.9 KB

0 commit comments

Comments
 (0)