Return-Path: Delivered-To: apmail-lucene-mahout-user-archive@minotaur.apache.org Received: (qmail 50523 invoked from network); 27 Aug 2009 09:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Aug 2009 09:58:21 -0000 Received: (qmail 67203 invoked by uid 500); 27 Aug 2009 09:58:20 -0000 Delivered-To: apmail-lucene-mahout-user-archive@lucene.apache.org Received: (qmail 67174 invoked by uid 500); 27 Aug 2009 09:58:20 -0000 Mailing-List: contact mahout-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-user@lucene.apache.org Delivered-To: mailing list mahout-user@lucene.apache.org Received: (qmail 67164 invoked by uid 99); 27 Aug 2009 09:58:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 09:58:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [193.205.191.1] (HELO gauss.crmpa.unisa.it) (193.205.191.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 09:58:10 +0000 Received: from Nelson (unknown [193.205.191.177]) by gauss.crmpa.unisa.it (Postfix) with ESMTP id 93FE7140C4 for ; Thu, 27 Aug 2009 12:03:51 +0200 (CEST) From: "Claudia Grieco" To: References: <000a01ca2654$e9d7c1e0$bd8745a0$@unisa.it> <000801ca265c$51a44fd0$f4ecef70$@unisa.it> <000001ca26ed$f2c175f0$d84461d0$@unisa.it> <001201ca26f8$264c25f0$72e471d0$@unisa.it> <001601ca26fa$ae69a8c0$0b3cfa40$@unisa.it> In-Reply-To: <001601ca26fa$ae69a8c0$0b3cfa40$@unisa.it> Subject: R: R: R: R: Problems with evaluator. Date: Thu, 27 Aug 2009 11:54:57 +0200 Message-ID: <001701ca26fc$6f140ec0$4d3c2c40$@unisa.it> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acom+cD9PkyDIJaYTxC0QL+98lKOKwAAEQDwAACQAPA= Content-Language: it X-Virus-Checked: Checked by ClamAV on apache.org Oh, I see, I was using even an older version of the mahout code, and = this problem had been fixed after. I had downloaded the before-150 code = but forgot to substitute the libraries -----Messaggio originale----- Da: Claudia Grieco [mailto:grieco@crmpa.unisa.it]=20 Inviato: gioved=C3=AC 27 agosto 2009 11.42 A: mahout-user@lucene.apache.org Oggetto: R: R: R: R: Problems with evaluator. But since I'm using boolean preference data, all the preferences are = relevant (score 1) so they are all erased from the training data: for (Preference pref : prefs) { if (pref.getValue() >=3D theRelevanceThreshold) { relevantItems.add(pref.getItem()); } } -----Messaggio originale----- Da: Sean Owen [mailto:srowen@gmail.com]=20 Inviato: gioved=C3=AC 27 agosto 2009 11.29 A: mahout-user@lucene.apache.org Oggetto: Re: R: R: R: Problems with evaluator. Yes, that is correct. The framework splits the user's preferences into "relevant" and "not relevant" items. It then takes away the relevant items, and leaves the non-relevant items in the training data. Then, it sees how many of those relevant items are recommended back to the user, to compute precision and recall. On Thu, Aug 27, 2009 at 10:24 AM, Claudia Grieco = wrote: > Notice this part: > for (Preference pref : prefs2) { > if (!relevantItems.contains(pref.getItem())) { > trainingPrefs.add(pref); > }} > It adds a preference only if it's NOT in the relevant items