Return-Path: Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: (qmail 40408 invoked from network); 11 May 2010 14:55:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 14:55:03 -0000 Received: (qmail 19367 invoked by uid 500); 11 May 2010 14:55:02 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 19323 invoked by uid 500); 11 May 2010 14:55:02 -0000 Mailing-List: contact dev-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 dev@mahout.apache.org Received: (qmail 19315 invoked by uid 99); 11 May 2010 14:55:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 14:55:02 +0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.208.4.194] (HELO mout.perfora.net) (74.208.4.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 14:54:55 +0000 Received: from jeff-eastmans-macbook-pro.local (c-71-198-0-148.hsd1.ca.comcast.net [71.198.0.148]) by mrelay.perfora.net (node=mrus4) with ESMTP (Nemesis) id 0M7p5U-1NPXYj2yzg-00vZpR; Tue, 11 May 2010 10:54:30 -0400 Message-ID: <4BE96FA4.4050108@windwardsolutions.com> Date: Tue, 11 May 2010 07:54:28 -0700 From: Jeff Eastman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: dev@mahout.apache.org Subject: Re: mahout test References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/gp5ABk3cUrWdrpphOOORMNz4tFaZPf+HpWkl GzWydXrliKrZKnJ7QZhb/jo9+tDlj41eUbFQE6RdGoZ6BUh1oC 8BkqHB1QzZWwZo44T54glh4P+V6O8BfR48MNHOtRuc= What kind of algorithm do you want to test? If it is pure Java you can write a unit test; look in one of the testing folders for many examples. If you want to test a MapReduce algorithm, you can write it in a unit test too, it is just a little more complicated. Look in the clustering tests for several examples. In these tests we use a dummy output collector (in-memory version of the Hadoop collector) and test it similarly. On 5/10/10 8:12 PM, Cui tony wrote: > Can anybody give a brief introduction on how to write mahout test? I need to > make a test on an algorithm and I have not found the way. > > Thanks! > >