yuh-yang / KGCL-SIGIR22

[SIGIR'22] Knowledge Graph Contrastive Learning for Recommendation
https://arxiv.org/abs/2205.00976
MIT License
103 stars 26 forks source link

I have some questions about the source code and would like to ask you #3

Closed kaishuibujiatang closed 2 years ago

kaishuibujiatang commented 2 years ago
  1. In the world.py file, ROOT_PATH = "./" on line 10, is there a dot missing on the right?

  2. In contrast. Py, the import worldpip line 10 is wrong?

  3. In the contrat. py file, Line 231 d_inv[np.isINF (d_inv)] = 0.. Do I have to set the number on the right hand side?

yuh-yang commented 2 years ago

Hi.

  1. you should modify the root_path to your currently correct path.
  2. contrast.py, line 10 is importing world.py
  3. you can set it to 1 to enable self-connection, or just leave it to 0.