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

[Model] PinSAGE model with new sampler #1334

Merged
merged 22 commits into from
May 14, 2020
Merged

Conversation

BarclayII
Copy link
Collaborator

@BarclayII BarclayII commented Mar 8, 2020

Description

PinSAGE model on new sampler.

This implements the item-to-item recommendation in the original PinSAGE paper, as opposed to the original coarse implementation I put in this repository.

This implementation should consume a lot less GPU memory and should be a lot faster.

The implementation is still subject to changes as I need to tune the recommendation performance.

TODO

  • Stop using MovieLens and switch to another larger dataset. Tried Nowplaying-rs and got a better result.
  • Tune recommendation performance.

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented
  • To the my best knowledge, examples are either not affected by this change,
    or have been fixed to be compatible with this change

@BarclayII
Copy link
Collaborator Author

This PR is also related to #514 (since we will have a new implementation) and #1206

@jermainewang
Copy link
Member

  • Stop using MovieLens and switch to another larger dataset.

MovieLens has a 10M dataset. Will that suffice your need?

@BarclayII BarclayII marked this pull request as ready for review March 27, 2020 05:36
@BarclayII BarclayII changed the title [WIP][Model] PinSAGE model with new sampler [Model] PinSAGE model with new sampler Apr 8, 2020
else: # numeric
return torch.FloatTensor(series.values)

class PandasGraphBuilder(object):
Copy link
Member

Choose a reason for hiding this comment

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

@classicsong Look like this is a good example for CSV data loader too.

@BarclayII
Copy link
Collaborator Author

@HuXiangkun Sorry to bug you again. Any other comments?

@BarclayII BarclayII merged commit 1e84168 into dmlc:master May 14, 2020
@BarclayII BarclayII deleted the pinsage-model branch May 14, 2020 06:04
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.

3 participants