You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Allen Day <al...@gmail.com> on 2008/06/21 08:00:48 UTC
getting started with mahout, failing tests
Hi,
I finally had a chance to get mahout checked out and built today. I
want to get up to speed so I can start using/contributing.
I can get the "compile" target to build successfully, but I'm getting
errors from the "test" target.
[junit] Test org.apache.mahout.clustering.canopy.TestCanopyCreation FAILED
[junit] Test org.apache.mahout.matrix.TestSparseMatrix FAILED
[junit] Test org.apache.mahout.matrix.TestSparseVector FAILED
Is this normal for now?
-Allen
Re: getting started with mahout, failing tests
Posted by Allen Day <al...@gmail.com>.
Hi Grant,
You can see the relevant junit output below. It looks like the
SparseMatrix/SparseVector failures are caused by
SparseVector.asFormatString() serializing the key/value pairs in
arbitrary order.
I've attached a patch against revision 670280 that causes ordering by
keys (i.e. ascending vector index). Please let me know if I've
misunderstood asFormatString(), or if there is a better way to submit
a patch.
I'm looking into the CanopyCreation failure now...
-Allen
==============================================
[junit] Testcase:
testCanopyGenManhattanMR(org.apache.mahout.clustering.canopy.TestCanopyCreation):
Caused an ERROR
[junit] java.io.IOException: Job failed!
[junit] java.lang.RuntimeException: java.io.IOException: Job failed!
[junit] at
org.apache.mahout.clustering.canopy.CanopyDriver.runJob(CanopyDriver.java:80)
[junit] at
org.apache.mahout.clustering.canopy.TestCanopyCreation.testCanopyGenManhattanMR(TestCanopyCreation.java:473)
[junit] Caused by: java.io.IOException: Job failed!
[junit] at
org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1062)
[junit] at
org.apache.mahout.clustering.canopy.CanopyDriver.runJob(CanopyDriver.java:78)
[junit]
[junit]
[junit] Testcase:
testCanopyGenEuclideanMR(org.apache.mahout.clustering.canopy.TestCanopyCreation):
FAILED
[junit] 1st value expected:<C0: [s2, [1:1.8, 0]:1.8, ] > but
was:<C0: [s2, [0:1.8, 1]:1.8, ] >
[junit] junit.framework.ComparisonFailure: 1st value expected:<C0:
[s2, [1:1.8, 0]:1.8, ] > but was:<C0: [s2, [0:1.8, 1]:1.8, ] >
[junit] at
org.apache.mahout.clustering.canopy.TestCanopyCreation.testCanopyGenEuclideanMR(TestCanopyCreation.java:522)
[junit]
[junit]
[junit] Testcase:
testUserDefinedDistanceMeasure(org.apache.mahout.clustering.canopy.TestCanopyCreation):
FAILED
[junit] 1st value expected:<C0: [s2, [1:1.5, 0]:1.5, ] > but
was:<C0: [s2, [0:1.5, 1]:1.5, ] >
[junit] junit.framework.ComparisonFailure: 1st value expected:<C0:
[s2, [1:1.5, 0]:1.5, ] > but was:<C0: [s2, [0:1.5, 1]:1.5, ] >
[junit] at
org.apache.mahout.clustering.canopy.TestCanopyCreation.testUserDefinedDistanceMeasure(TestCanopyCreation.java:813)
==============================================
[junit] Testcase:
testAsFormatString(org.apache.mahout.matrix.TestSparseMatrix):
FAILED
[junit] format expected:<[s3, [s2, [1:6.6, 0:5.5, ] [s2, 1:4.4,
0:3.3, ] [s2, 1:2.2, 0:1.1], ] ] > but was:<[s3, [s2, [0:1.1, 1:2.2, ]
[s2, 0:3.3, 1:4.4, ] [s2, 0:5.5, 1:6.6], ] ] >
[junit] junit.framework.ComparisonFailure: format expected:<[s3,
[s2, [1:6.6, 0:5.5, ] [s2, 1:4.4, 0:3.3, ] [s2, 1:2.2, 0:1.1], ] ] >
but was:<[s3, [s2, [0:1.1, 1:2.2, ] [s2, 0:3.3, 1:4.4, ] [s2, 0:
5.5, 1:6.6], ] ] >
[junit] at
org.apache.mahout.matrix.TestSparseMatrix.testAsFormatString(TestSparseMatrix.java:39)
==============================================
[junit] Testcase:
testAsFormatString(org.apache.mahout.matrix.TestSparseVector):
FAILED
[junit] format expected:<[s5, [2:2.2, 1:1.1], 3:3.3, ] > but
was:<[s5, [1:1.1, 2:2.2], 3:3.3, ] >
[junit] junit.framework.ComparisonFailure: format expected:<[s5,
[2:2.2, 1:1.1], 3:3.3, ] > but was:<[s5, [1:1.1, 2:2.2], 3:3.3, ] >
[junit] at
org.apache.mahout.matrix.TestSparseVector.testAsFormatString(TestSparseVector.java:40)
==============================================
On Sat, Jun 21, 2008 at 5:40 AM, Grant Ingersoll <gs...@apache.org> wrote:
> Hmm, weird. Can you look at the test reports and see what the errors are?
>
> -Grant
>
> On Jun 21, 2008, at 2:00 AM, Allen Day wrote:
>
>> Hi,
>>
>> I finally had a chance to get mahout checked out and built today. I
>> want to get up to speed so I can start using/contributing.
>>
>> I can get the "compile" target to build successfully, but I'm getting
>> errors from the "test" target.
>>
>> [junit] Test org.apache.mahout.clustering.canopy.TestCanopyCreation
>> FAILED
>> [junit] Test org.apache.mahout.matrix.TestSparseMatrix FAILED
>> [junit] Test org.apache.mahout.matrix.TestSparseVector FAILED
>>
>> Is this normal for now?
>>
>> -Allen
>
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
>
>
>
>
>
--
allenday.skype
+1 (415) 335-4654 (office)
+1 (310) 804-5304 (mobile)
+1 (515) 474-9337 (fax)
Re: getting started with mahout, failing tests
Posted by Grant Ingersoll <gs...@apache.org>.
Hmm, weird. Can you look at the test reports and see what the errors
are?
-Grant
On Jun 21, 2008, at 2:00 AM, Allen Day wrote:
> Hi,
>
> I finally had a chance to get mahout checked out and built today. I
> want to get up to speed so I can start using/contributing.
>
> I can get the "compile" target to build successfully, but I'm getting
> errors from the "test" target.
>
> [junit] Test
> org.apache.mahout.clustering.canopy.TestCanopyCreation FAILED
> [junit] Test org.apache.mahout.matrix.TestSparseMatrix FAILED
> [junit] Test org.apache.mahout.matrix.TestSparseVector FAILED
>
> Is this normal for now?
>
> -Allen
--------------------------
Grant Ingersoll
http://www.lucidimagination.com
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ
Re : getting started with mahout, failing tests
Posted by deneche abdelhakim <a_...@yahoo.fr>.
I just did a fresh checkout and all the tests are successfull !!!
--- En date de : Sam 21.6.08, Allen Day <al...@gmail.com> a écrit :
> De: Allen Day <al...@gmail.com>
> Objet: getting started with mahout, failing tests
> À: mahout-dev@lucene.apache.org
> Date: Samedi 21 Juin 2008, 8h00
> Hi,
>
> I finally had a chance to get mahout checked out and built
> today. I
> want to get up to speed so I can start using/contributing.
>
> I can get the "compile" target to build
> successfully, but I'm getting
> errors from the "test" target.
>
> [junit] Test
> org.apache.mahout.clustering.canopy.TestCanopyCreation
> FAILED
> [junit] Test org.apache.mahout.matrix.TestSparseMatrix
> FAILED
> [junit] Test org.apache.mahout.matrix.TestSparseVector
> FAILED
>
> Is this normal for now?
>
> -Allen
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr