Code Monkey home page Code Monkey logo

recsys_pytorch's Issues

Questions about Evaluation and DAE input normalization

Hi,

First of all, thanks for sharing this strong work! I found this repo would be really useful for researchers.

While the overall code structure is very clean and intuitive to me, I have some questions about the evaluation code.

  1. I was just wondering what before_evaluation methods(in Model classes) are.

  2. I was wondering if your evaluation code is based on the assumption that the shape of the training matrix and test matrix are guaranteed to be the same or not. I found that the numbers of users in training and test matrices might be different as some users are dropped from the matrix in df_to_sparse. Does the evaluation code work even those shapes are not matched?

  3. Is there any reference about the input normalization for DAE(CDAE)?

  # normalize
  user_degree = torch.norm(rating_matrix, 2, 1).view(-1, 1)   # user, 1
  item_degree = torch.norm(rating_matrix, 2, 0).view(1, -1)   # 1, item
  normalize = torch.sqrt(user_degree @ item_degree)
  zero_mask = normalize == 0
  normalize = torch.masked_fill(normalize, zero_mask.bool(), 1e-10)

  normalized_rating_matrix = rating_matrix / normalize

Thanks!

Cython backend troubles

Hi yoongi0428,

Thanks a lot for sharing this extensive recommender system implementation.
I have tried to run your code on python 3.8, however I run into trouble with the cython backend.
I get an error of the form:

/local/home/scheidlf/.pyxbld/temp.linux-x86_64-3.8/pyrex/utils/backend/cython/tool.c:610:10: fatal error: numpy/arrayobject.h: No such file or directory
#include "numpy/arrayobject.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I was wondering if you could share the environment you worked with or let us know which packages are required to run the code.

Best,
Flo

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.