-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QST] Target feature for causal masking #722
Comments
@AresDan we have an example nb for that in Merlin Models if you want to use our Tensorflow API. In this example we separate the last item as a target column named as for your |
Thank you for your answer. You have mentioned that I can use Categorical Output, however, for T4R torch library is used with NextItemPredictionTask. Does this function masks only last element and tries to predict it? But how exactly this function determines the target feature? Because there is not explanation in the documentation. In addition to that, I work on a problem where I try to recommend items based on items features, click history and user data. Do you recommend some tutorial about T4R which covers all these aspects? |
@AresDan this tutorial is using item features, user-item interaction history (click history in your case) and context features (can be user-data in your case). If you have user data say (location, age, gender, etc.) they are broadcasted using You need to to start from data preprocessing notebooks before you execute the transformer model.
we set the target name in the output block:
|
Hi. I have a question regarding target feature for causal masking
Details
I am working on a recommendation system for users who clicks on items. The user has a click history and I want to detect the next item that will be clicked. I figure out that using ">> TagAsItemID()" is responsible for specifying that the following feature is a target feature. So i am using it for user click history feature. However, if I want to detect only the last item that is clicked (list[-1]), how can I specify it? And using causal masking, how exactly transformer identifies the target and which elements it masks in user click history?
The text was updated successfully, but these errors were encountered: