It works fine when we initialise the initial clusters to already existing 
clusters. In my case, i had taken the clusters from k means algorithm. It 
seems, this is the same problem which you had mentioned!.



________________________________
From: Kate Ericson <[email protected]>
To: [email protected]; sri krishna <[email protected]>
Sent: Sunday, 14 August 2011 9:35 PM
Subject: Re: Error in running fkmeans from console

There's been a problem with fuzzy k-means for a while, where the
driver tries to parse the -k flag too many times.
This may be something else though...
Can you run it if you point it at existing starting clusters?
That way we'd be able to see if its the same problem.

-Kate

On Sun, Aug 14, 2011 at 9:43 AM, sri krishna <[email protected]> wrote:
> Version used: Mahout 0.5
>
> Command Runned:
>
>
> bin/mahout fkmeans -i reuters-vectors/tfidf-vectors -c 
> reuters-kmeans-clusters -o reuters-fkmeans-clusters -cd 1.0 -k 21 -m 2 -ow -x 
> 10 -dm org.apache.mahout.common.distance.SquaredEuclideanDistanceMeasure
>
>
>
> Exception in thread "main" java.lang.NumberFormatException: null
>     at java.lang.Integer.parseInt(Integer.java:443)
>     at java.lang.Integer.parseInt(Integer.java:514)
>     at 
> org.apache.mahout.clustering.fuzzykmeans.FuzzyKMeansDriver.run(FuzzyKMeansDriver.java:115)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>     at 
> org.apache.mahout.clustering.fuzzykmeans.FuzzyKMeansDriver.main(FuzzyKMeansDriver.java:65)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at 
> org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>     at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>     at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:187)
>
> am i missing anything here??. I had taken the sources files from latest 
> version of mahout.

Reply via email to