User 4540 | 4/9/2016, 6:29:42 AM
I have used factorizationrecommender.create() to generate a training model. Since I want to find similar new users based on the existing user -items-ratings (10 items rated by every user in data set), I am trying to use recommend() to generate the recommendations of new user. But I am not sure how to use newuserinfo field/parameter to pass the exact same items(item id's) and their ratings for an existing user (because corresponding to each userId in trained model, there are ratings for 10 items so itemId being the key and rating its value) to verify if the recommendation method I used, returns the user with same ratings(to be categorized as a similar user based on item preferences/ratings).
//Say a user with userId 100 isn't in trained model so a new user. Here I plan to pass an existing userId's rating for a particular ItemId:X.
res.recommend(users=100,newuserdata=newuserinfo) This results in an error. Also, can I pass all ItemIds and their respective ratings (for a particular existing user ) in newuserdata in recommend()? Can someone advice how to proceed,if this isn't the correct way?