Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

pandas - How to efficiently do data augmentation in movieLen case for recommender systems in python?

I have a dataset that is basically like the MovieLen dataset. It has 3 columns: userGUID, card, action. User GUID is userId, card is contentId, action is ratings of contents by users. It looks like as below:

enter image description here

I have 16536 users and 16734 cards And only little portion of them is rated (action). What I want to do is to is data augmentation where I get userGUID and card rows which are not rated at all.

So I would ultimately like to have each user's all card that is not rated (action-ed'). Each user will have augmented data excluding already rated ones. So data I expect would look like below:

enter image description here

This table is only for not rated augmented ones.

I wish someone can provide python code to do this.

Thank you in advance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...