mahout-recommender

How to implement the SlopeOne recommender in Mahout 0.9?

旧街凉风 提交于 2019-12-10 17:37:07
问题 I'm new to Mahout and am trying to work through 'Mahout in Action,' which uses the 0.5 release. One of the early examples calls for using the slope-one recommender. Is this recommender still included in Mahout 0.9? I've looked through the documentation and I couldn't find it. Perhaps it has changed names? Thanks for your help! 回答1: There is no SlopeOneRecommender present in Mahout 0.9. It was removed in an earlier version of Mahout. SlopeOne Recommender was removed from Mahout 0.8 onwards

Cassandra based Mahout user friend recommendations

若如初见. 提交于 2019-12-06 12:20:32
问题 I want to recommend a user , a list of users which the current user can add as friends. I am using Cassandra and mahout. there is already a implementation of CassandraDataModel in mahout integration package. I want to use this class. So my recommend-er class looks like follows public class UserFriendsRecommender { @Inject private CassandraDataModel dataModel; public List<RecommendedItem> recommend(Long userId, int number) throws TasteException{ UserSimilarity userSimilarity = new

how can I compile/using mahout for hadoop 2.0?

五迷三道 提交于 2019-12-05 12:01:02
The latest release mahout 0.9 is only built on hadoop 1.x. (mvn clean install) How can I compile mahout for hadoop 2.0.x? Because When I was running the commands: hadoop jar mahout-examples-0.9-SNAPSHOT-job.jar org.apache.mahout.cf.taste.hadoop.item.RecommenderJob -s SIMILARITY_COOCCURENCE -i test -o result I always got the error message IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected. Thanks! To compile Mahout to work with 2.x since it isn't released in a package that is compatible with Hadoop 2.x: mvn clean install -Dhadoop2

Mahout: adjusted cosine similarity for item based recommender

有些话、适合烂在心里 提交于 2019-12-05 07:48:43
问题 For an assignment I'm supposed to test different types of recommenders, which I have to implement first. I've been looking around for a good library to do that (I had thought about Weka at first) and stumbled upon Mahout. I must therefore put forward that: a) I'm completely new to Mahout b) I do not have a strong background in recommenders nor their algorithms (otherwise I wouldn't be doing this class...) and c) sorry but I'm far from being the best developper in the world ==> I'd appreciate

Cassandra based Mahout user friend recommendations

。_饼干妹妹 提交于 2019-12-04 18:18:56
I want to recommend a user , a list of users which the current user can add as friends. I am using Cassandra and mahout. there is already a implementation of CassandraDataModel in mahout integration package. I want to use this class. So my recommend-er class looks like follows public class UserFriendsRecommender { @Inject private CassandraDataModel dataModel; public List<RecommendedItem> recommend(Long userId, int number) throws TasteException{ UserSimilarity userSimilarity = new PearsonCorrelationSimilarity(dataModel); // Optional: userSimilarity.setPreferenceInferrer(new

Mahout: adjusted cosine similarity for item based recommender

六月ゝ 毕业季﹏ 提交于 2019-12-03 20:29:33
For an assignment I'm supposed to test different types of recommenders, which I have to implement first. I've been looking around for a good library to do that (I had thought about Weka at first) and stumbled upon Mahout. I must therefore put forward that: a) I'm completely new to Mahout b) I do not have a strong background in recommenders nor their algorithms (otherwise I wouldn't be doing this class...) and c) sorry but I'm far from being the best developper in the world ==> I'd appreciate if you could use layman terms (as far as possible...) :) I've been following some tutorials (e.g. this

What's difference between item-based and content-based collaborative filtering?

岁酱吖の 提交于 2019-12-03 00:14:14
问题 I am puzzled about what the item-based recommendation is, as described in the book "Mahout in Action". There is the algorithm in the book: for every item i that u has no preference for yet for every item j that u has a preference for compute a similarity s between i and j add u's preference for j, weighted by s, to a running average return the top items, ranked by weighted average How can I calculate the similarity between items? If using the content, isn't it a content-based recommendation?

What's difference between item-based and content-based collaborative filtering?

谁说胖子不能爱 提交于 2019-12-02 15:40:21
I am puzzled about what the item-based recommendation is, as described in the book " Mahout in Action ". There is the algorithm in the book: for every item i that u has no preference for yet for every item j that u has a preference for compute a similarity s between i and j add u's preference for j, weighted by s, to a running average return the top items, ranked by weighted average How can I calculate the similarity between items? If using the content, isn't it a content-based recommendation? Item-Based Collaborative Filtering The original Item-based recommendation is totally based on user

Does Mahout provide a way to determine similarity between content (for content-based recommendations)?

安稳与你 提交于 2019-11-30 16:31:49
Does Mahout provide a way to determine similarity between content? I would like to produce content-based recommendations as part of a web application. I know Mahout is good at taking user-ratings matrices and producing recommendations based off of them, but I am not interested in collaborative (ratings-based) recommendations. I want to score how well two pieces of text match and then recommend items that match most closely to text that I store for users in their user profile... I've read Mahout's documentation, and it looks like it facilitates mainly the collaborative (ratings-based)

Does Mahout provide a way to determine similarity between content (for content-based recommendations)?

孤街浪徒 提交于 2019-11-30 16:19:00
问题 Does Mahout provide a way to determine similarity between content? I would like to produce content-based recommendations as part of a web application. I know Mahout is good at taking user-ratings matrices and producing recommendations based off of them, but I am not interested in collaborative (ratings-based) recommendations. I want to score how well two pieces of text match and then recommend items that match most closely to text that I store for users in their user profile... I've read