Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding errors in the process of reproducing the code #21

Open
qstongxue opened this issue Dec 20, 2024 · 0 comments
Open

Regarding errors in the process of reproducing the code #21

qstongxue opened this issue Dec 20, 2024 · 0 comments

Comments

@qstongxue
Copy link

Hello, I tried to reproduce your code, but I keep encountering errors. I noticed that in the experiment.py file, you use torch.save(value, os.path.join(argv.targetdir, 'attention', str(k), f'{key}.pth')) to save the REST results as .pth files. However, in the analysis.py file, you attempt to load them using .npy format with node_attention = np.concatenate([np.load(os.path.join(argv.targetdir, 'attention', str(k), 'node_attention.npy')) for k in range(argv.k_fold)]). How can I resolve this issue? This mismatch seems like it would cause problems in subsequent plotting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant