Code Monkey home page Code Monkey logo

recipe-personalization's Issues

Loss value might be negative. Is it ok?

Hi, I've read your paper. It's very nice and interesting.
I would like to ask you a question about an evaluation of recipe level coherence using an absolute order network.

In your code at recipe-personalization/recipe_gen/analysis/absolute_order_teacher.py L77, the cosine similarity loss is calculated as:

cos_similarity = F.cosine_similarity(repr_1, repr_2, dim=1)

I replicated it and found that the loss value would be negative after training.
Is it acceptable?

sample code

Hi, I have got the recipe_gen code from https://github.com/majumderb/recipe-personalization.git and food-com-recipes-and-user-interactions data. How to train and test the code? Do you have any sample code or README with details? Current README says "the code is tested on a Linux server (with NVIDIA GeForce Titan X Pascal / NVIDIA GeForce GTX 1080 Ti) with PyTorch 1.1.0 and Python 3.6."

About measuring personalization

Hi,
Thanks for your sharing. I have questions to ask you. How is the personalization evaluation calculated. Is it to pre train the evaluation model according to the training set, and then use the pre-trained model to evaluate the personalized performance in the evaluation part. And I can't find the code about this part. Can you tell me which file is related to the evaluation.
Thanks!

How can I preprocess the data?

There are only raw kaggle data(csv), not preprocessed data(pkl) to train the model.
Is there any addiational code to preprocess the data?

Keras

Hi, there a keras version of the model I can look at for better understanding as I'm finding it a bit hard to replicate,

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.