【问题标题】:What is file input format for Recommendation Engine?推荐引擎的文件输入格式是什么?
【发布时间】:2013-06-27 09:50:09
【问题描述】:

当我以这种格式提供输入文件时,我在 Hadoop 集群上使用 Ubuntu12.04、Hadoop-1.0.4、Mahout-0.7 运行作业用于推荐算法,map reduce 运行良好但没有给出任何结果(空白)

tataRecommend100.txt(用户 ID - 产品 ID - 偏好)

14218954    54518   4
14218954    617691  2
14218954    616488  2
14218954    614975  2
14218954    605662  1
14218954    619979  1
14218954    14183   3
14218954    611309  5
14218954    615242  3
14218954    13138   1
14232708    54518   1
14232708    617691  3
14232708    616488  1
14232708    614975  5
14232708    605662  4

命令:-bin/hadoop jar /home/hadoop/apacheC/mahout-distribution-0.7/mahout-core-0.7-job.jar
org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -s SIMILARITY_COOCCURRENCE --input /tataDocomo/recommend/tataRecommend100.txt --output /tataDocomo/recommend/tataRecommendOutput

【问题讨论】:

标签: mahout recommendation-engine mahout-recommender


【解决方案1】:

您的数据太稀疏/太小,无法提出建议。尝试使用非玩具数据集。

【讨论】:

  • 由于空间限制,我只显示 20 行,但我正在运行 10000 个具有不同值的评级(行)。
【解决方案2】:

可能是您没有给它一个您想要推荐的用户 ID 吗?当我第一次尝试时,这发生在我身上。没有输出。你把它放在你为 --userFile 传递的文件中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-01-09
    • 2011-12-08
    • 2010-09-08
    • 1970-01-01
    • 2019-09-25
    • 2016-03-13
    • 1970-01-01
    相关资源
    最近更新 更多