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 the unsupervised bipartite GraphSAGE model on the Taobao dataset #6144

Merged
merged 37 commits into from
Jan 16, 2023

Conversation

husimplicity
Copy link
Contributor

This PR adds an implementation of unsupervised bipartite GraphSAGE on the Taobao User Behaviors dataset offered by Alibaba. The Taobao dataset contains a heterogeneous graph, where nodes represent users and items, and edges represent different types of behaviors between users and items.
We use the i2i co-occurrence matrix to construct the i2i-graph. When applying GraphSAGE, the model follows the i-i-i pattern to encode the item embedding and the i-i-u pattern to encode the user embedding. As the task is unsupervised, we use negative sampling and binary_cross_entropy_with_logits to compute the loss in the model.

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #6144 (4b856d3) into master (9b2bbe5) will not change coverage.
The diff coverage is n/a.

❗ Current head 4b856d3 differs from pull request most recent head 6b9cf19. Consider uploading reports for the commit 6b9cf19 to get more accurate results

@@           Coverage Diff           @@
##           master    #6144   +/-   ##
=======================================
  Coverage   85.09%   85.09%           
=======================================
  Files         402      402           
  Lines       21672    21672           
=======================================
  Hits        18442    18442           
  Misses       3230     3230           
Impacted Files Coverage Δ
torch_geometric/explain/algorithm/captum.py 97.87% <ø> (ø)
torch_geometric/loader/link_neighbor_loader.py 100.00% <ø> (ø)
torch_geometric/nn/models/captum.py 100.00% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@rusty1s rusty1s left a comment

Choose a reason for hiding this comment

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

Thank you!

@rusty1s rusty1s merged commit 5d777e7 into pyg-team:master Jan 16, 2023
rusty1s added a commit that referenced this pull request Jan 19, 2023
#6431 created a `pyproject.toml` which aimed to create a single
configuration file for `yapf`, `isort`, `coverage`, `pyright` among
others. All the configuration for `yapf` now lies within the
`pyproject.toml` file.

This PR aims to delete the redundant `.style.yapf` possibly added back
after (#6144).

Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants