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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackmedda
Copy link

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.

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.

None yet

1 participant