-
Notifications
You must be signed in to change notification settings - Fork 278
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
会话中的物品顺序 #17
Comments
是的, 我认为他的确实是乱序的, 我改成by=['TimeId', 'Timestamp']了 |
可是一个会话中每个项目的Timestamp也是一样的,求问怎么弄成有序的 |
会话内相同Timestamp的项目是没有办法继续再排序的, 不过有些会话内不同项目的Timestamp是不同的
…------------------ 原始邮件 ------------------
发件人: "DeepGraphLearning/RecommenderSystems" ***@***.***>;
发送时间: 2023年7月31日(星期一) 下午3:52
***@***.***>;
***@***.******@***.***>;
主题: Re: [DeepGraphLearning/RecommenderSystems] 会话中的物品顺序 (#17)
是的, 我认为他的确实是乱序的, 我改成by=['TimeId', 'Timestamp']了
可是一个会话中每个项目的Timestamp也是一样的,求问怎么弄成有序的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
还想请问一下,您用另外两个数据集(Yelp和delicious)来跑过吗?那两个数据集中在会话的项目可以都按时间顺序排吗? |
由于会话划分时只使用会话ID进行排序,一个会话内物品的顺序是不是乱序的?
data = data.sort_values(by=['TimeId']).groupby('SessionId')['ItemId'].apply(list).to_dict()
The text was updated successfully, but these errors were encountered: