deepfindr / gnn-project

A Graph Neural Network project on HIV data
255 stars 89 forks source link

Where does the 0 come from ? #9

Closed SuroshAhmadZobair closed 2 years ago

SuroshAhmadZobair commented 2 years ago

Hi Thank you for all your effort on the Gnn-project.

Once the training is done:

Processing...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3999/3999 [00:27<00:00, 145.31it/s]
Done!
Loading model...
...
...
...
    if i % self.top_k_every_n == 0:
ZeroDivisionError: integer division or modulo by zero

Any insights @deepfindr

Thanks in advance

deepfindr commented 2 years ago

Hi! Did you set top_k_every_n to 0? That is invalid because it leads to division by zero. :)

SuroshAhmadZobair commented 2 years ago

Thanks for your quick response.

By default it was 0 in the config file. I should have searched myself. I changed it to 1 and it works fine now.

Thanks