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

Problem with loss #3

Open
HeVLF opened this issue Nov 20, 2023 · 4 comments
Open

Problem with loss #3

HeVLF opened this issue Nov 20, 2023 · 4 comments

Comments

@HeVLF
Copy link

HeVLF commented Nov 20, 2023

Hello, thank you for sharing your work! I am trying to run your code but I'm encountering some errors with computing the loss, mainly due to the majority of the epochs having a loss equal to "inf" or even "nan". So I am not sure if I changed something without noticing. But would love to hear from you or someone that has faced the same issue.

Best.

@cnuzh
Copy link
Owner

cnuzh commented Nov 21, 2023

@HeVLF Hi, have you normalized the data you entered? Is it cross-entropy loss or mutual information loss? Is the weight of the loss function set correctly?

@HeVLF
Copy link
Author

HeVLF commented Nov 22, 2023

The situation that I described was with ABIDE and the default setting by you, so with both cross entropy and mutual information, with the weight being equal to 0.1. After I tried with only cross entropy and the results were what one would expect. But I still couldn’t find the error using the loss as described in your paper.
Thank you for your prompt response.

@cnuzh
Copy link
Owner

cnuzh commented Dec 20, 2023

The output should be normalized

@sws827767542
Copy link

您好,请问我在运行的时候为什么train spe: 0.00000

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

3 participants