You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by deneche abdelhakim <a_...@yahoo.fr> on 2009/12/22 06:51:01 UTC

Re : Breiman example issues

Hi Roshan,

just tried the example with the latest trunk and had the same problem. I'm investigating the problem right now. Thank you for reporting this issue

Deneche

--- En date de : Mar 22.12.09, Roshan A. Punnoose <rp...@proteuseng.com> a écrit :

> De: Roshan A. Punnoose <rp...@proteuseng.com>
> Objet: Breiman example issues
> À: "mahout-user@lucene.apache.org" <ma...@lucene.apache.org>
> Date: Mardi 22 Décembre 2009, 2h01
> Hi,
> 
> I am trying to run the Breiman decision tree at http://cwiki.apache.org/MAHOUT/breiman-example.html
> with the glass data, but I keep getting this error when I
> actually run the Breiman example:
> 
> 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)
> 
> 
> I believe I’m at the latest trunk since a week ago.
> 
> Roshan
> 


      

Re: Re : Breiman example issues

Posted by "Roshan A. Punnoose" <rp...@proteuseng.com>.
Thanks that worked.


On 12/22/09 4:12 AM, "deneche abdelhakim" <a_...@yahoo.fr> wrote:

> I (hopefully) fixed the problem, get the latest trunk and try again.

thanks
> again for the report

Deneche
--- En date de : Mar 22.12.09, deneche
> abdelhakim <a_...@yahoo.fr> a écrit :

> De: deneche abdelhakim
> <a_...@yahoo.fr>
> Objet: Re : Breiman example issues
> À:
> mahout-user@lucene.apache.org
> Date: Mardi 22 Décembre 2009, 6h51
> Hi
> Roshan,
> 
> just tried the example with the latest trunk and had the
> same
> problem. I'm investigating the problem right now. Thank
> you for reporting
> this issue
> 
> Deneche
> 
> --- En date de : Mar 22.12.09, Roshan A. Punnoose
> <rp...@proteuseng.com>
> a écrit :
> 
> > De: Roshan A. Punnoose
> <rp...@proteuseng.com>
> > Objet: Breiman example issues
> > À:
> "mahout-user@lucene.apache.org"
> <ma...@lucene.apache.org>
> > Date:
> Mardi 22 Décembre 2009, 2h01
> > Hi,
> > 
> > I am trying to run the Breiman
> decision tree at http://cwiki.apache.org/MAHOUT/breiman-example.html
> > with
> the glass data, but I keep getting this error
> when I
> > actually run the
> Breiman example:
> > 
> > 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.j
> ava:25)
> >         at
> > java.lang.reflect.Method.invoke(Method.java:597)
>
> >         at
> > org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> > 
> >
> 
> > I believe I¹m at the latest trunk since a week ago.
> > 
> > Roshan
> >
> 
> 
> 
> 
> 


      


Re : Breiman example issues

Posted by deneche abdelhakim <a_...@yahoo.fr>.
I (hopefully) fixed the problem, get the latest trunk and try again.

thanks again for the report

Deneche
--- En date de : Mar 22.12.09, deneche abdelhakim <a_...@yahoo.fr> a écrit :

> De: deneche abdelhakim <a_...@yahoo.fr>
> Objet: Re : Breiman example issues
> À: mahout-user@lucene.apache.org
> Date: Mardi 22 Décembre 2009, 6h51
> Hi Roshan,
> 
> just tried the example with the latest trunk and had the
> same problem. I'm investigating the problem right now. Thank
> you for reporting this issue
> 
> Deneche
> 
> --- En date de : Mar 22.12.09, Roshan A. Punnoose <rp...@proteuseng.com>
> a écrit :
> 
> > De: Roshan A. Punnoose <rp...@proteuseng.com>
> > Objet: Breiman example issues
> > À: "mahout-user@lucene.apache.org"
> <ma...@lucene.apache.org>
> > Date: Mardi 22 Décembre 2009, 2h01
> > Hi,
> > 
> > I am trying to run the Breiman decision tree at http://cwiki.apache.org/MAHOUT/breiman-example.html
> > with the glass data, but I keep getting this error
> when I
> > actually run the Breiman example:
> > 
> > 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)
> > 
> > 
> > I believe I’m at the latest trunk since a week ago.
> > 
> > Roshan
> > 
> 
> 
> 
>