wooner49 / TriCL

I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs (AAAI'23)
MIT License
33 stars 6 forks source link

Consultation on "Group Loss" #3

Open jellyfishovo opened 2 hours ago

jellyfishovo commented 2 hours ago

In your code, you mentioned group loss, which is the loss calculated after masking some of the hyperedges. However, during actual execution, I encountered an issue: after applying the hypergraph mask, the maximum indices in “hyperedge_index1” and “hyperedge_index2” are different, and the index values often differ by 1. Could you please explain where the problem might be? I have followed your code logic strictly while running it. image image Thank you for you time and consideration~

jellyfishovo commented 2 hours ago

the aforementioned proplem reslults in the error in hypergraph convolution process, and outputs tensors like (916,512) and (917,512). They are not allowed to calculate the "group loss" and report: IndexError: The shape of the mask [917] at index 0 does not match the shape of the indexed tensor [916, 512] at index 0