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

Fixed dropout instantiation in NGCF and GRU4RecKG forward. Moved dropout_prob in config for SimpleX. #1946

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

jackmedda
Copy link
Contributor

Some models were directly instantiating a dropout object in the forward function, such as NGCF. Calling model.eval() does not turn off dropout in these scenarios, leading to potential issues in the case a direct access to the forward function is done for whatever use.

For one of my projects, I indeed needed to regenerate the user and item embeddings by keeping constant the trained weights, but the predictions were inconsistent due to this issue.

I found this issue in NGCF and GRU4RecKG. While checking all the models, I also noticed that the dropout probability for SimpleX was hard-coded as 0.1, and I moved it to its config file.

@zhengbw0324 zhengbw0324 merged commit 14430b3 into RUCAIBox:master Aug 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants