Skip to content
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

Open
SSOTTY opened this issue Feb 4, 2021 · 4 comments
Open

会话中的物品顺序 #17

SSOTTY opened this issue Feb 4, 2021 · 4 comments

Comments

@SSOTTY
Copy link

SSOTTY commented Feb 4, 2021

由于会话划分时只使用会话ID进行排序,一个会话内物品的顺序是不是乱序的?
data = data.sort_values(by=['TimeId']).groupby('SessionId')['ItemId'].apply(list).to_dict()

@LevMe
Copy link

LevMe commented Jun 2, 2023

是的, 我认为他的确实是乱序的, 我改成by=['TimeId', 'Timestamp']了

@Z-oo883
Copy link

Z-oo883 commented Jul 31, 2023

是的, 我认为他的确实是乱序的, 我改成by=['TimeId', 'Timestamp']了

可是一个会话中每个项目的Timestamp也是一样的,求问怎么弄成有序的

@LevMe
Copy link

LevMe commented Jul 31, 2023 via email

@Z-oo883
Copy link

Z-oo883 commented Jul 31, 2023

会话内相同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: @.***>

会话内相同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)来跑过吗?那两个数据集中在会话的项目可以都按时间顺序排吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants