I think you have to modify the source code by incorporating some filters.

-----邮件原件-----
发件人: Akshay Jain [mailto:jaks...@gmail.com] 
发送时间: 2011年11月8日 17:24
收件人: user@mahout.apache.org
主题: Collaborative filtering help needed

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.

Reply via email to