Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D3968431 for ; Sat, 3 Sep 2011 08:05:41 +0000 (UTC) Received: (qmail 9906 invoked by uid 500); 3 Sep 2011 08:05:40 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 9594 invoked by uid 500); 3 Sep 2011 08:05:32 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 9574 invoked by uid 99); 3 Sep 2011 08:05:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 08:05:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of srowen@gmail.com designates 209.85.213.170 as permitted sender) Received: from [209.85.213.170] (HELO mail-yx0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 08:05:19 +0000 Received: by yxk30 with SMTP id 30so2550288yxk.1 for ; Sat, 03 Sep 2011 01:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+YMd6JgeFj/+hJoHMfqaHUTdhU6eJUaXc+sN11YRINc=; b=wx3kVkD5Fq/BqDtO/djUdyObBdRnM6tYn3lj9tfZBl6b/oiHAAV9Ngmjm22yz+0lYq yIV3nJocjEFyi1sObFn/KF6REj0a+ENF0EQLTQYuPQmREMdkDVaimM6BGc2JSmG7tYvN nOnq5peqY98id84X7ZyxrRAq1K7kkKtIfXxlI= MIME-Version: 1.0 Received: by 10.101.28.22 with SMTP id f22mr1410075anj.155.1315037098870; Sat, 03 Sep 2011 01:04:58 -0700 (PDT) Received: by 10.100.41.18 with HTTP; Sat, 3 Sep 2011 01:04:58 -0700 (PDT) In-Reply-To: References: Date: Sat, 3 Sep 2011 09:04:58 +0100 Message-ID: Subject: Re: question on writing a customized item similiarity function From: Sean Owen To: user@mahout.apache.org Content-Type: multipart/alternative; boundary=001636b2b0ac25067604ac04ef99 X-Virus-Checked: Checked by ClamAV on apache.org --001636b2b0ac25067604ac04ef99 Content-Type: text/plain; charset=UTF-8 If you are referring to the non-distributed similarity function, it is quite easy: implement UserSimilarity or ItemSimilarity and use that as your similarity function. How you implement is up to you. If you say more about what you need to do, maybe people can suggest the right logic. On Sat, Sep 3, 2011 at 2:26 AM, Walter Chang wrote: > Hi, > > If an item has both user rating and item specific contents(category, item > description content) for example for product recommendation, how can i > customize the similarity function ? As far as I understand, the current > mahout similarity function is based on user rating only. Any one had > experience writing a custom item based similarity function ? > > Thanks a lot, > > Weide > --001636b2b0ac25067604ac04ef99--