I recently attempted to reproduce your code and encountered several issues. It appears that the nn.TransformerEncoder only yields a single output. However, in line 74 of the file network.py, the code "commonz, S = self.TransformerEncoder(commonz)" seems to contain an error. I would appreciate if you could address this issue at your earliest convenience. Furthermore, I am interested in understanding how the global relationship matrix S is computed, as it is a critical aspect of your study. Please consider updating your code accordingly.
I recently attempted to reproduce your code and encountered several issues. It appears that the nn.TransformerEncoder only yields a single output. However, in line 74 of the file network.py, the code "commonz, S = self.TransformerEncoder(commonz)" seems to contain an error. I would appreciate if you could address this issue at your earliest convenience. Furthermore, I am interested in understanding how the global relationship matrix S is computed, as it is a critical aspect of your study. Please consider updating your code accordingly.