Coder Social home page Coder Social logo

ilya-shenbin / recvae Goto Github PK

View Code? Open in Web Editor NEW
106.0 106.0 28.0 24 KB

The official PyTorch implementation of the paper "RecVAE: A New Variational Autoencoder for Top-N Recommendations with Implicit Feedback"

License: Apache License 2.0

Python 100.00%
collaborative-filtering pytorch variational-autoencoder

recvae's People

Contributors

dependabot[bot] avatar ilya-shenbin avatar tutubalinaev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

recvae's Issues

confused about dataset split

Hi, nice work about Variational Autoencoder on recommendation. However, I am confused about the method of data split which is the same way as 2018WWW-Variational autoencoders for collaborative filtering
In the

unique_uid = user_activity.index

unique_uid is the index of active user rather than the uid (unique_uid['userId']). Owing to the filter operator before, some userId are moved out. Then some valid userId at the end will not be considered if we adopt the index of user_activity rather than the actual uid. I guess it might be a error or is there any other meaning of that?

Looking forward to your reply, Thanks.
Best.

epoch result: nan for ndcg

Greetings to the team!
Your code is beautiful, but I'm lost in the implementation of it.

I have the last version of PyTorch: https://pytorch.org/get-started/locally/ & Python

  • Stable (1.8.1)
  • OS: Windows
  • Package: PiP
  • Computer Platform: CUDA 11.1
  • Python: 3.8.7

When I train the model I receive the outputs:

  • test_te.csv
  • test_tr.csv
  • validation_tr.csv
  • validation_te.csv
  • train
  • unique_sid
  • unique_uid
    (For k = 100 in utils.py)

image

If I change the utils.py in the return of ndcg function for: return DCG/IDCG to: return np.divide(DCG,IDCG, where=IDCG!=0) it solve it, but still giving 'low' values. The latter in comparison with other VAE-CF results.

Can you help me, please?

Congratulations. I reiterate, your code is beautiful in comparison to tensorflow-keras implementation.

Best regards,
Mirko.

why should allocate so many memory

i have dataset: train.csv 5869632 number, user:53424,item:10000; then run error;
RuntimeError: CUDA out of memory. Tried to allocate 13.12 GiB (GPU 0; 23.70 GiB total capacity; 0 bytes already allocated; 12.33 GiB free; 0 bytes reserved in total by PyTorch)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.