-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add bipartite GraphSAGE
example
#5834
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5834 +/- ##
==========================================
- Coverage 86.48% 84.54% -1.94%
==========================================
Files 361 361
Lines 19882 19877 -5
==========================================
- Hits 17195 16806 -389
- Misses 2687 3071 +384
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
GraphSAGE
example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool, thanks for adding! Left a few comments.
for more information, see https://pre-commit.ci
This PR adds an example implementation of a recommendation model bipartite Graphsage. The current implementation is a supervised version on MovieLens. The i2i co-occurrence matrix is applied to construct i2i-graph. When applying Graphsage, the model follows i-i-i pattern to encode item embedding and i-i-u for user-side respectively. Since the task to predict u2i rates is supervised, we apply MSE loss with labels. For next step, we will apply this model to an unsupervised task on another dataset with negative sampling and triplet loss. Co-authored-by: 胡树弦 <[email protected]> Co-authored-by: huxleyhu <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: huxleyhu <[email protected]> Co-authored-by: Matthias Fey <[email protected]>
This PR adds an example implementation of a recommendation model bipartite Graphsage.
The current implementation is a supervised version on MovieLens. The i2i co-occurrence matrix is applied to construct i2i-graph. When applying Graphsage, the model follows i-i-i pattern to encode item embedding and i-i-u for user-side respectively. Since the task to predict u2i rates is supervised, we apply MSE loss with labels.
For next step, we will apply this model to an unsupervised task on another dataset with negative sampling and triplet loss.