I think specifying an item file with one item does it? You should get one rec for most users that is that item. On Nov 8, 2011 9:25 AM, "Akshay Jain" <[email protected]> wrote:
> Hi. > > Let me first say a BIG "THANKS" to the Mahout community and the authors of > the book "Mahout In Action". I have just started with Hadoop and Mahout and > am finding them extremely useful. > > I am running the following code: > hadoop jar mahout-core-0.5-job.jar > org.apache.mahout.cf.taste.hadoop.item.RecommenderJob > -Dmapred.input.dir=input/input.txt -Dmapred.output.dir=output --userFile > input/users.txt --BooleanData > > How do I specify that I want to get predictions for only specific items and > not the top 10 recommedations for the specified users in the "usersFile" > file? > I want to enter the file as following: > User1,Item23 > User1,item344 > User2,item12 > user56,236 > etc > and want to get results like: > User1,Item23,Predictd_Rating=4.5 > User1,item344, Predictd_Rating=8 > User2,item12, Predictd_Rating=1 > user56,236, Predictd_Rating=2 > etc > > I can specify a "itemsFile" but that would not serve the purpose as I do > not want to specify a ItemsList from where to get the recommendations. I > want only one recommendation for the User*Item combination that I have to > be predicted. > > Thank you. >
