Comments (5)
@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.
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.
@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.
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.
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)
- [QST] ValueError: For masking a categorical_module is required including an item_id.
- [QST] Projecting inputs of NextItemPredictionTask to'64' As weight tying requires the input dimension '320' to be equal to the item-id embedding dimension '64' HOT 4
- [QST] Cross-entropy and pairwise losses are supported in Next Item Prediction
- [QST] How to print metrics while training?
- RuntimeError: CUDF failure at: /__w/cudf/cudf/cpp/src/io/parquet/reader_impl_helpers.cpp:379: Invalid rowgroup index[BUG] HOT 10
- [BUG] Inconsistent inference and evaluation results of the XLNET-CLM even on the training set! HOT 2
- [BUG] CausalLanguageModeling masking error on last item only condition HOT 1
- [QST] Help with creating two tower model with transformers. HOT 1
- [FEA] Post context fusion using T4rec api HOT 1
- [BUG] CausalLanguageModeling do not mask last input item HOT 3
- [QST] Extracting User Representation Vectors from Pre-trained Next Item Prediction Model
- [BUG] AttributeError: 'list' object has no attribute 'output_node'" HOT 3
- Model is not generating accurate recommandations [QST]
- [BUG] RuntimeError: PyTorch execute failure: Expected Tensor but got GenericList
- [QST] Problem with defining input module, item embedding table. HOT 4
- [QST] examples/tutorial/02-ETL-with-NVTabular.ipynb
- [BUG] examples/tutorial/01-preprocess.ipynb: Convert timestamp from datetime - NotImplementedError: cuDF does not yet support timezone-aware datetimes
- [QST] Prediction Output Length Not Matching Input Length HOT 1
- Compound Tags.ITEM_ID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers4rec.