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

Add HRDR model #518

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Add HRDR model #518

merged 3 commits into from
Jul 21, 2023

Conversation

lthoang
Copy link
Member

@lthoang lthoang commented Jun 28, 2023

Description

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

cornac/models/hrdr/hrdr.py Outdated Show resolved Hide resolved
@tqtg
Copy link
Member

tqtg commented Jun 30, 2023

LGTM


user_review_h = user_text_processor(l_user_review_embedding(i_user_review))
item_review_h = item_text_processor(l_item_review_embedding(i_item_review))
self.graph = Model(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more like a build_graph function inside HDRModel class than initializing a new instance. We only build this graph once for each HDR model, don't we?

@lthoang lthoang merged commit 3d41f52 into PreferredAI:master Jul 21, 2023
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