-
Notifications
You must be signed in to change notification settings - Fork 620
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
[Question] Add features to .inter atomic file #608
Comments
Yes, you can add any feature columns in the .inter file.
More instruction can be found in our doc. |
Thanks for Zihan's comment about selectively loading interaction features from atomic files to As for accessing features in models, generally, you can just fetch them from |
Thanks |
Just a reminder that if the user in your dataset has multiple sessions, then the interactions in different sessions will be mixed since they are all marked with the same timestamp. Other than this minor tip, I think it should be fine. For more details, please refer to the following code: https://github.com/RUCAIBox/RecBole/blob/master/recbole/data/dataset/sequential_dataset.py#L74 |
Thanks for the timestamp tip! Can you explain what you mean by "As for accessing features in models, generally, you can just fetch them from |
Since I happened to code this part, I think I am appropriate to reply:
|
Thanks! for #2 - So if my features are only on the interaction (and not user or item) I should use Gru4Rec and not GRU3recf. What do you mean by "to get access to them" - do you mean that the model will consider them? |
Please allow me to reply with an example, say for the following atom file,
After the data augmentation, we expect to generate the following two sequences,
Going back to your questions
and then you can get access to it, for example, within function calculate_loss,
|
Thank you! |
Please allow me to confirm your user case, are you dealing with the case like: |
Be free to correct me if I am wrong. Only the basic fields of the data frame have been pre-registered in the abstract_recommender.py
will get access to the corresponding fields in the dataframe. Other than that, all the customized fields need to be explicitly specified by the user. Say if you wanna fetch the field named NUM_OF_TIMES, then you need to 1) register the filed name in the config 2) assign an attribute within your customized model, e.g self.NUM_OF_TIMES = config['NUM_OF_TIMES_FIELD'] 3) fetch the field via interaction[self.NUM_OF_TIMES] |
Thanks, I guess we are waiting for an answer in the other thread :) |
Thanks for @rowedenny 's replies. @mayaKaplansky If you want to use the additional inter feature fields in your sequential recommender. You can follow this #608 (comment) of rowedenny. |
Thanks! Use in a way that the model will use them for learning, or use in a way that they can be predicted? |
Thank you for all your help.
Is this OK? You also explained I need to specify that in the config file which I assume you meant:
And your last instruction was: fetch the field via interaction[self.NUM_OF_TIMES] many thanks1 |
|
Thank you! |
Hi
I see I can have user features and item features, but my dataset has interaction features.
Can I express them in the .inter file as additional columns?
The text was updated successfully, but these errors were encountered: