Giter VIP home page Giter VIP logo

Comments (5)

rnyak avatar rnyak commented on June 15, 2024

@Oussamakhammassi are you trying to generate predictions offline or using Triton inference server?

This examples shows how to generate topk items from Triton: https://github.com/NVIDIA-Merlin/Transformers4Rec/blob/main/examples/end-to-end-session-based/02-End-to-end-session-based-with-Yoochoose-PyT.ipynb

from transformers4rec.

Oussamakhammassi avatar Oussamakhammassi commented on June 15, 2024

Hi @rnyak i did the predictions but now i have another problem. In fact i used my own dataset and my aim is to give the model a single item_id and he predicts the top_k recommended products. for that i used my own dataset containing the same features as yoochoose-clicks dataset. I made the same preproc but the problem is that the model gives the same predictions for all items. I tested it on yoochoose and it worked but when it comes to my own data it dosen't work. I want also to know if it is feasable to predict based on a single item not a sequence of items like i did in my project? if it is what details should i take into consideration to deal with this issue?

from transformers4rec.

rnyak avatar rnyak commented on June 15, 2024

@Oussamakhammassi for train and evaluation steps, you need to provide a sequence with at least 2 interactions (e.g. item-id). But for prediction you can give a sequence with only one interaction. However, if you train your model with other features than item-id-list, you need to provide these features at the inference step as well. You cannot only feed item-id-list if model is trained with multiple features.

from transformers4rec.

rnyak avatar rnyak commented on June 15, 2024

you also need to checkout if you are properly tagging your features. You said, your model gives the same predictions for all items, is your data synthetic data or real dataset? if it is synthetically generated, as we do in some examples, it is normal you get same predictions since the data is not really meaningful, it is only for demonstration purpose.
what's not working on your data? you get an error? if yes, what's the error?

from transformers4rec.

Oussamakhammassi avatar Oussamakhammassi commented on June 15, 2024

Hi @rnyak, i'm using a real dataset from the history of purchases of an online website and i provided the same features used in yoochoose-clicks. The data preprocessing is working and also the training and evaluation, but when it comes to prediction, it generates the same predictions for all items. I did a comparaison between yoochoose and my dataset and the only detail that i could notice is the products popularity. In fact, in yoochoose-clicks the average of number of times a product belong to a transaction is 200 while in my case 45. Could it be because of this factor that the model is not detecting any logic relationship in the data?

from transformers4rec.

Related Issues (20)

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.