|
Algorithm 2 Model training |
|
Require: Attributed networks and , parameters and , batch sizes , and ; |
-
1:
for
do
-
2:
Sample a group of node pairs of size in the anchor links set T;
-
3:
Let , perform a gradient calculation on ;
-
4:
Sample a group of contexts of size in the source network ;
-
5:
Let , perform a gradient calculation on ;
-
6:
Sample a group of contexts of size in the target network ;
-
7:
Let , perform a gradient calculation on .
-
8:
end for
|