Closed vivpra89 closed 11 months ago
@vivpra89 could you please share you email id so that we discuss this model in detail then we can post our doubts here to get quick replies
@NamartaVij
We are not able to return “output_attention_weights" from the TF4Rec model. This is not implemented. What we can return is to extract hidden state embeddings out of the Trainer module via model.heads[0].body(batch[0])
which will return a 3D array size of (batch_size, sequence_length, d_model).
hope that helps.
@NamartaVij I am closing this ticket since there is no recent activity.
❓ Questions & Help
Details
1.I want to extract the last dense layer embeddings for every user (one row) and pass as pre-trained embeddings to downstream tasks. (Should i pass a user_id as input and extract those embeddings? or get the hidden state .. which of these two represent the user better?
Tried doing this to get hidden state:
@gabrielspmoreira @rnyak any thoughts appreciated!