Question on norm Graphsage

Hi everyone,

I see that in SAGEConv — DGL 0.8.2post1 documentation there is an argument called “norm” which is initialise with None.

I was wondering, how can I apply the normalization applied by the authors in their paper ?
They normalize with an L2 norm.

I did not see any example on the web of the “norm” parameter different from “None”.
If you have any idea on how to apply the L2 normalization, I am happy to hear it.

Thank you all!

For L2 normalization, you can pass in the corresponding normalization function as:

norm = lambda x: F.normalize(x, p=2.0, dim=-1)
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.