HazyResearch / hgcn

Hyperbolic Graph Convolutional Networks in PyTorch.
586 stars 107 forks source link

Query in the distance function #8

Closed AdarshMJ closed 4 years ago

AdarshMJ commented 4 years ago

Hi! Excellent paper!

Pardon, if this seems like a silly question. Im having a hard time understanding why is there a square of the distance function?

Screenshot 2020-03-22 at 2 17 39 PM
ines-chami commented 4 years ago

The function sqdist implements the squared hyperbolic distance which is numerically more stable. The non-squared distance is unstable for points that are close to each other (see Appendix C in https://arxiv.org/pdf/1804.03329.pdf for more details).