lrjconan / GRAN

Efficient Graph Generation with Graph Recurrent Attention Networks, Deep Generative Model of Graphs, Graph Neural Networks, NeurIPS 2019
MIT License
462 stars 97 forks source link

MMD computation - square root missing #17

Open tathagatv opened 3 years ago

tathagatv commented 3 years ago

The compute_mmd function in dist_helper.py should compute square root of disc(s1, s1) + disc(s2, s2) - 2*disc(s1, s2) right? Here is a reference for the same.

sajjadGG commented 2 years ago

The function returns MMD^2 the same as other graph generation models like https://github.com/JiaxuanYou/graph-generation/blob/master/test_MMD.py