Skip to main content
7 events
when toggle format what by license comment
Dec 25, 2018 at 19:43 vote accept I.D.M
Dec 24, 2018 at 20:23 history edited wacax CC BY-SA 4.0
new improvement without bug
Dec 24, 2018 at 20:16 comment added wacax As suggested at the end: " If you don't want to use User_Id as indices you will have to create new indices and use those instead and have one User_Id correspond to a new index." that means User_Id 11 = New_Index = 1, User_Id 18 = New_Index = 2. Use New_Index instead of User_Id and you're done. If you want to add more information about your question then you should edit your question instead. Check the answer edit for more information.
Dec 24, 2018 at 20:14 history edited wacax CC BY-SA 4.0
further explanation with code.
Dec 24, 2018 at 20:03 history edited wacax CC BY-SA 4.0
clarification requested by comment.
Dec 24, 2018 at 15:27 comment added I.D.M Thank you for your answer. I have one more problem. Unfortunately, the levels function probably does not really match my problem because it spreads User_Id between all numbers between 1 and 276726. But I do not have all of these values in the original User_Id for example 11, 18 etc. Or, do you think that I should only use a subset of rows from dgCMatrix to create a realRatingMatrix ?
Dec 24, 2018 at 3:21 history answered wacax CC BY-SA 4.0