GraphSAGE icon indicating copy to clipboard operation
GraphSAGE copied to clipboard

cannot converge use tf.nn.l2_normalize

Open stevechoris opened this issue 6 years ago • 1 comments

I try graphsage with my own code and data. it works well when not use tf.nn.l2_normalize after encoder and before decoder. but when i use tf.nn.l2_normalize to normlize the output vector to length of 1, the model just cannot converge and the loss does not decrease. what is the cause of this problem.

stevechoris avatar Mar 22 '19 07:03 stevechoris

I think this might be an specific issue about your dataset. In my experiment however, I have not encountered this before. With l2_normalize, the model essentially embeds the nodes into a high-dimensional sphere. It might not be good for some link prediction / reconstruction task where the underlying graph is not suitable to be embedded into sphere. Examples are tree-like, hierarchical graphs.

RexYing avatar May 28 '19 05:05 RexYing