Return-Path: X-Original-To: apmail-mahout-commits-archive@www.apache.org Delivered-To: apmail-mahout-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A430101EE for ; Sun, 8 Mar 2015 17:10:34 +0000 (UTC) Received: (qmail 90280 invoked by uid 500); 8 Mar 2015 17:10:34 -0000 Delivered-To: apmail-mahout-commits-archive@mahout.apache.org Received: (qmail 90216 invoked by uid 500); 8 Mar 2015 17:10:34 -0000 Mailing-List: contact commits-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list commits@mahout.apache.org Received: (qmail 90207 invoked by uid 99); 8 Mar 2015 17:10:34 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 17:10:34 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 151F3AC006E for ; Sun, 8 Mar 2015 17:10:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r942886 - in /websites/staging/mahout/trunk/content: ./ users/recommender/quickstart.html Date: Sun, 08 Mar 2015 17:10:34 -0000 To: commits@mahout.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150308171034.151F3AC006E@hades.apache.org> Author: buildbot Date: Sun Mar 8 17:10:33 2015 New Revision: 942886 Log: Staging update by buildbot for mahout Modified: websites/staging/mahout/trunk/content/ (props changed) websites/staging/mahout/trunk/content/users/recommender/quickstart.html Propchange: websites/staging/mahout/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Sun Mar 8 17:10:33 2015 @@ -1 +1 @@ -1665051 +1665055 Modified: websites/staging/mahout/trunk/content/users/recommender/quickstart.html ============================================================================== --- websites/staging/mahout/trunk/content/users/recommender/quickstart.html (original) +++ websites/staging/mahout/trunk/content/users/recommender/quickstart.html Sun Mar 8 17:10:33 2015 @@ -247,7 +247,7 @@

Recommender Overview

Recommenders have changed over the years. Mahout contains a long list of them, which you can still use. But to get the best out of our more modern aproach we'll need to think of the Recommender as a "model creation" component—supplied by Mahout's new spark-itemsimilarity job, and a "serving" component—supplied by a modern scalable search engine, like Solr.

-

image

+

image

To integrate with your application you will collect user interactions storing them in a DB and also in a from usable by Mahout. The simplest way to do this is log interactions to csv files (user-id, item-id). The DB should be setup to contain the last n user interactions, which will form part of the query for recommendations.

Mahout's spark-itemsimilarity will create a table of (item-id, list-of-similar-items) in csv form. Think of this as an item collection with one field containing the item-ids of similar items. Index this with your search engine.

When your application needs recommendations for a specific person, get the latest user history of interactions from the DB and query the indicator collection with this history. You will get back an ordered list of item-ids. These are your recommendations. You may wish to filter out any that the user has already seen but that will depend on your use case.