88
- 89
- 90
+ 90
91
92
93
@@ -1600,7 +1599,9 @@
109
110
111
-112 | def __init__(
+112
+113
+114
| def __init__(
self,
dimension=None,
n_jumps=None,
@@ -1709,9 +1710,7 @@
Source code in mercury/graph/embeddings/graphembeddings.py
- 114
-115
-116
+ 116
117
118
119
@@ -1720,7 +1719,9 @@ 122
123
124
-125 | def __getitem__(self, arg):
+125
+126
+127
| def __getitem__(self, arg):
"""
Method to access rows in the embedding by ID.
@@ -1776,9 +1777,7 @@
Source code in mercury/graph/embeddings/graphembeddings.py
- 203
-204
-205
+ 205
206
207
208
@@ -1786,7 +1785,9 @@ 210
211
212
-213 | def embedding(self):
+213
+214
+215
| def embedding(self):
"""
Return the internal Embeddings object.
@@ -1879,9 +1880,7 @@
Source code in mercury/graph/embeddings/graphembeddings.py
- 127
-128
-129
+ 129
130
131
132
@@ -1953,7 +1952,9 @@
198
199
200
-201 | def fit(self, g: Graph):
+201
+202
+203
| def fit(self, g: Graph):
"""
Train the embedding by doing random walks.
@@ -2161,9 +2162,7 @@
Source code in mercury/graph/embeddings/graphembeddings.py
- 215
-216
-217
+ 217
218
219
220
@@ -2188,7 +2187,9 @@ 239
240
241
-242 | def get_most_similar_nodes(
+242
+243
+244
| def get_most_similar_nodes(
self, node_id, k=5, metric="cosine", return_as_indices=False
):
"""
@@ -2287,9 +2288,7 @@
Source code in mercury/graph/embeddings/graphembeddings.py
- 244
-245
-246
+ 246
247
248
249
@@ -2316,7 +2315,9 @@
270
271
272
-273 | def save(self, file_name, save_embedding=False):
+273
+274
+275
| def save(self, file_name, save_embedding=False):
"""
Saves a GraphEmbedding to a compressed binary file with or without the embedding itself. It saves the graph's node names
and the adjacency matrix as a sparse matrix.
diff --git a/site/reference/ml/index.html b/site/reference/ml/index.html
index c1e9932..f6ba05b 100644
--- a/site/reference/ml/index.html
+++ b/site/reference/ml/index.html
@@ -774,6 +774,8 @@
all nodes are reassigned at the same time and conflicts (i.e., 1 -> C2 and
2 -> C1) are resolved with a simple tie-breaking rule. This version also
introduces the resolution parameter gamma, as in .
+Contributed by Arturo Soberon Cedillo, Jose Antonio Guzman Vazquez and
+Isaac Dodanim Hernandez Garcia.
|
|
|
|
|
|
|
|
|
|
|