mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yang Sun <soushare....@gmail.com>
Subject New to mahout
Date Thu, 11 Mar 2010 17:40:24 GMT
Hi,

It's the first time I try to use mahout. But the Breiman example gave me the
following exception:

[localhost]$ hadoop jar examples/target/mahout-examples-0.2.job
org.apache.mahout.df.BreimanExample -d test_data/glass.data -ds test_data/
glass.info -i 10 -t 100
10/03/11 09:26:07 INFO df.BreimanExample: Iteration 0
10/03/11 09:26:07 INFO df.BreimanExample: Growing a forest with m=4
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 10%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 20%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 30%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 40%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 50%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 60%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 70%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 80%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 90%
10/03/11 09:26:07 INFO ref.SequentialBuilder: Building 100%
Exception in thread "main" java.lang.IllegalArgumentException: labels.length
!= predictions.length
        at
org.apache.mahout.df.ErrorEstimate.errorRate(ErrorEstimate.java:29)
        at
org.apache.mahout.df.BreimanExample.runIteration(BreimanExample.java:108)
        at org.apache.mahout.df.BreimanExample.run(BreimanExample.java:214)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.mahout.df.BreimanExample.main(BreimanExample.java:143)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

Can any one help me get through it?

Thanks,
Yang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message