You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Tharindu Mathew <mc...@gmail.com> on 2012/02/19 09:00:25 UTC
1000 clusters for 1000 points
Hi,
I'm getting $subject when I run the following:
$ bin/mahout org.apache.mahout.clustering.syntheticcontrol.meanshift.Job -x
15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
org.apache.mahout.common.distance.EuclideanDistanceMeasure -i testdata -ow
-o output
$ bin/mahout clusterdump -i output/clusters-1-final -p
output/clusteredPoints -o ./clusteranalyze300112.txt
I'm trying to reproduce
https://issues.apache.org/jira/browse/MAHOUT-966with the attached data
set...
Is there an additional step involved in preparing the input vector, or
anything else that I'm missing?
--
Regards,
Tharindu
blog: http://mackiemathew.com/
Re: 1000 clusters for 1000 points
Posted by Tharindu Mathew <mc...@gmail.com>.
This is done Paritosh. I'll have a look at the fix this week.
On Mon, Feb 20, 2012 at 10:30 AM, Paritosh Ranjan <pr...@xebia.com> wrote:
> Yes. I think it would be good to have these stats/observations as a
> comment on the jira issue.
>
>
> On 20-02-2012 01:35, Tharindu Mathew wrote:
>
>> Initial analysis shows, the n printed by Cluster Dumper to deviate
>> significantly.
>>
>> While clusterpp and cluster dumper shows 200 points each in the cluster
>> for
>> a clustering run with params in this mail, while n from cluster dumper
>> shows values of 223, 392, 290, 207 and 235.
>>
>> The correct fix is to make n display 200, isn't it?
>>
>> On Sun, Feb 19, 2012 at 5:16 PM, Paritosh Ranjan<pr...@xebia.com>
>> wrote:
>>
>> n in clusters-n-final is the iteration number.
>>>
>>> "final" is attached to the iteration which either converges or is the
>>> last
>>> one. Reading the documentation on how clustering happens will make it
>>> more
>>> clear.
>>>
>>>
>>> On 19-02-2012 15:26, Tharindu Mathew wrote:
>>>
>>> Hi Paritosh,
>>>>
>>>> I followed the steps in the description... Somehow missed the one in the
>>>> comment... Thanks...
>>>>
>>>> Just a small verification... my output's directory says
>>>> clusters-2-final,
>>>> while there are 5 clusters shown in cluster dumper...
>>>>
>>>> what does n mean in clusters-n-final...?
>>>>
>>>> On Sun, Feb 19, 2012 at 1:48 PM, Paritosh Ranjan<pr...@xebia.com>
>>>> wrote:
>>>>
>>>> Check out the comments on the issue
>>>>
>>>>> https://issues.apache.org/******jira/browse/MAHOUT-966<https://issues.apache.org/****jira/browse/MAHOUT-966>
>>>>> <https:/**/issues.apache.org/**jira/**browse/MAHOUT-966<https://issues.apache.org/**jira/browse/MAHOUT-966>
>>>>> >
>>>>> <https:/**/issues.apache.org/**jira/**browse/MAHOUT-966<http://issues.apache.org/jira/**browse/MAHOUT-966>
>>>>> <https**://issues.apache.org/jira/**browse/MAHOUT-966<https://issues.apache.org/jira/browse/MAHOUT-966>
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> The clustering step was executed using
>>>>>
>>>>> bin/mahout org.apache.mahout.clustering.***
>>>>> ***syntheticcontrol.meanshift.***
>>>>> *Job
>>>>> -x 15 -cd 5 -t1 100 -t2 30 -cl -dm org.apache.mahout.common.****
>>>>> distance.******EuclideanDistanceMeasure
>>>>>
>>>>>
>>>>> -i testdata -ow -o output
>>>>>
>>>>> The t1 and t2 values used were t1=100 and t2=30.
>>>>>
>>>>> The values you are using are t1=0.7 and t2=0.5.
>>>>> So, your cluster size is really small, so you are getting 1000
>>>>> clusters.
>>>>>
>>>>> Changing t1=100 and t2=30 should help.
>>>>>
>>>>>
>>>>> On 19-02-2012 13:30, Tharindu Mathew wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>>> I'm getting $subject when I run the following:
>>>>>>
>>>>>> $ bin/mahout org.apache.mahout.clustering.*****
>>>>>> *syntheticcontrol.meanshift.****Job
>>>>>>
>>>>>>
>>>>>> -x
>>>>>> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
>>>>>> org.apache.mahout.common.******distance.******EuclideanDistanceMeasure
>>>>>> -i
>>>>>>
>>>>>>
>>>>>> testdata -ow
>>>>>> -o output
>>>>>>
>>>>>> $ bin/mahout clusterdump -i output/clusters-1-final -p
>>>>>> output/clusteredPoints -o ./clusteranalyze300112.txt
>>>>>>
>>>>>> I'm trying to reproduce
>>>>>> https://issues.apache.org/******jira/browse/MAHOUT-966with<https://issues.apache.org/****jira/browse/MAHOUT-966with>
>>>>>> <htt**ps://issues.apache.org/**jira/**browse/MAHOUT-966with<https://issues.apache.org/**jira/browse/MAHOUT-966with>
>>>>>> >
>>>>>> <htt**ps://issues.apache.org/**jira/**browse/MAHOUT-966with<http://issues.apache.org/jira/**browse/MAHOUT-966with>
>>>>>> <h**ttps://issues.apache.org/jira/**browse/MAHOUT-966with<https://issues.apache.org/jira/browse/MAHOUT-966with>
>>>>>> >>the
>>>>>>
>>>>>> attached data
>>>>>>
>>>>>>
>>>>>> set...
>>>>>>
>>>>>> Is there an additional step involved in preparing the input vector, or
>>>>>> anything else that I'm missing?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>
>
--
Regards,
Tharindu
blog: http://mackiemathew.com/
Re: 1000 clusters for 1000 points
Posted by Paritosh Ranjan <pr...@xebia.com>.
Yes. I think it would be good to have these stats/observations as a
comment on the jira issue.
On 20-02-2012 01:35, Tharindu Mathew wrote:
> Initial analysis shows, the n printed by Cluster Dumper to deviate
> significantly.
>
> While clusterpp and cluster dumper shows 200 points each in the cluster for
> a clustering run with params in this mail, while n from cluster dumper
> shows values of 223, 392, 290, 207 and 235.
>
> The correct fix is to make n display 200, isn't it?
>
> On Sun, Feb 19, 2012 at 5:16 PM, Paritosh Ranjan<pr...@xebia.com> wrote:
>
>> n in clusters-n-final is the iteration number.
>>
>> "final" is attached to the iteration which either converges or is the last
>> one. Reading the documentation on how clustering happens will make it more
>> clear.
>>
>>
>> On 19-02-2012 15:26, Tharindu Mathew wrote:
>>
>>> Hi Paritosh,
>>>
>>> I followed the steps in the description... Somehow missed the one in the
>>> comment... Thanks...
>>>
>>> Just a small verification... my output's directory says clusters-2-final,
>>> while there are 5 clusters shown in cluster dumper...
>>>
>>> what does n mean in clusters-n-final...?
>>>
>>> On Sun, Feb 19, 2012 at 1:48 PM, Paritosh Ranjan<pr...@xebia.com>
>>> wrote:
>>>
>>> Check out the comments on the issue
>>>> https://issues.apache.org/****jira/browse/MAHOUT-966<https://issues.apache.org/**jira/browse/MAHOUT-966>
>>>> <https:/**/issues.apache.org/jira/**browse/MAHOUT-966<https://issues.apache.org/jira/browse/MAHOUT-966>
>>>>
>>>>
>>>> The clustering step was executed using
>>>>
>>>> bin/mahout org.apache.mahout.clustering.****syntheticcontrol.meanshift.*
>>>> *Job
>>>> -x 15 -cd 5 -t1 100 -t2 30 -cl -dm org.apache.mahout.common.****
>>>> distance.****EuclideanDistanceMeasure
>>>>
>>>> -i testdata -ow -o output
>>>>
>>>> The t1 and t2 values used were t1=100 and t2=30.
>>>>
>>>> The values you are using are t1=0.7 and t2=0.5.
>>>> So, your cluster size is really small, so you are getting 1000 clusters.
>>>>
>>>> Changing t1=100 and t2=30 should help.
>>>>
>>>>
>>>> On 19-02-2012 13:30, Tharindu Mathew wrote:
>>>>
>>>> Hi,
>>>>> I'm getting $subject when I run the following:
>>>>>
>>>>> $ bin/mahout org.apache.mahout.clustering.***
>>>>> *syntheticcontrol.meanshift.**Job
>>>>>
>>>>> -x
>>>>> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
>>>>> org.apache.mahout.common.****distance.****EuclideanDistanceMeasure -i
>>>>>
>>>>> testdata -ow
>>>>> -o output
>>>>>
>>>>> $ bin/mahout clusterdump -i output/clusters-1-final -p
>>>>> output/clusteredPoints -o ./clusteranalyze300112.txt
>>>>>
>>>>> I'm trying to reproduce
>>>>> https://issues.apache.org/****jira/browse/MAHOUT-966with<https://issues.apache.org/**jira/browse/MAHOUT-966with>
>>>>> <htt**ps://issues.apache.org/jira/**browse/MAHOUT-966with<https://issues.apache.org/jira/browse/MAHOUT-966with>>the
>>>>> attached data
>>>>>
>>>>>
>>>>> set...
>>>>>
>>>>> Is there an additional step involved in preparing the input vector, or
>>>>> anything else that I'm missing?
>>>>>
>>>>>
>>>>>
>
Re: 1000 clusters for 1000 points
Posted by Tharindu Mathew <mc...@gmail.com>.
Initial analysis shows, the n printed by Cluster Dumper to deviate
significantly.
While clusterpp and cluster dumper shows 200 points each in the cluster for
a clustering run with params in this mail, while n from cluster dumper
shows values of 223, 392, 290, 207 and 235.
The correct fix is to make n display 200, isn't it?
On Sun, Feb 19, 2012 at 5:16 PM, Paritosh Ranjan <pr...@xebia.com> wrote:
> n in clusters-n-final is the iteration number.
>
> "final" is attached to the iteration which either converges or is the last
> one. Reading the documentation on how clustering happens will make it more
> clear.
>
>
> On 19-02-2012 15:26, Tharindu Mathew wrote:
>
>> Hi Paritosh,
>>
>> I followed the steps in the description... Somehow missed the one in the
>> comment... Thanks...
>>
>> Just a small verification... my output's directory says clusters-2-final,
>> while there are 5 clusters shown in cluster dumper...
>>
>> what does n mean in clusters-n-final...?
>>
>> On Sun, Feb 19, 2012 at 1:48 PM, Paritosh Ranjan<pr...@xebia.com>
>> wrote:
>>
>> Check out the comments on the issue
>>>
>>> https://issues.apache.org/****jira/browse/MAHOUT-966<https://issues.apache.org/**jira/browse/MAHOUT-966>
>>> <https:/**/issues.apache.org/jira/**browse/MAHOUT-966<https://issues.apache.org/jira/browse/MAHOUT-966>
>>> >
>>>
>>>
>>>
>>> The clustering step was executed using
>>>
>>> bin/mahout org.apache.mahout.clustering.****syntheticcontrol.meanshift.*
>>> *Job
>>> -x 15 -cd 5 -t1 100 -t2 30 -cl -dm org.apache.mahout.common.****
>>> distance.****EuclideanDistanceMeasure
>>>
>>> -i testdata -ow -o output
>>>
>>> The t1 and t2 values used were t1=100 and t2=30.
>>>
>>> The values you are using are t1=0.7 and t2=0.5.
>>> So, your cluster size is really small, so you are getting 1000 clusters.
>>>
>>> Changing t1=100 and t2=30 should help.
>>>
>>>
>>> On 19-02-2012 13:30, Tharindu Mathew wrote:
>>>
>>> Hi,
>>>>
>>>> I'm getting $subject when I run the following:
>>>>
>>>> $ bin/mahout org.apache.mahout.clustering.***
>>>> *syntheticcontrol.meanshift.**Job
>>>>
>>>> -x
>>>> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
>>>> org.apache.mahout.common.****distance.****EuclideanDistanceMeasure -i
>>>>
>>>> testdata -ow
>>>> -o output
>>>>
>>>> $ bin/mahout clusterdump -i output/clusters-1-final -p
>>>> output/clusteredPoints -o ./clusteranalyze300112.txt
>>>>
>>>> I'm trying to reproduce
>>>> https://issues.apache.org/****jira/browse/MAHOUT-966with<https://issues.apache.org/**jira/browse/MAHOUT-966with>
>>>> <htt**ps://issues.apache.org/jira/**browse/MAHOUT-966with<https://issues.apache.org/jira/browse/MAHOUT-966with>>the
>>>> attached data
>>>>
>>>>
>>>> set...
>>>>
>>>> Is there an additional step involved in preparing the input vector, or
>>>> anything else that I'm missing?
>>>>
>>>>
>>>>
>>
>
--
Regards,
Tharindu
blog: http://mackiemathew.com/
Re: 1000 clusters for 1000 points
Posted by Paritosh Ranjan <pr...@xebia.com>.
n in clusters-n-final is the iteration number.
"final" is attached to the iteration which either converges or is the
last one. Reading the documentation on how clustering happens will make
it more clear.
On 19-02-2012 15:26, Tharindu Mathew wrote:
> Hi Paritosh,
>
> I followed the steps in the description... Somehow missed the one in the
> comment... Thanks...
>
> Just a small verification... my output's directory says clusters-2-final,
> while there are 5 clusters shown in cluster dumper...
>
> what does n mean in clusters-n-final...?
>
> On Sun, Feb 19, 2012 at 1:48 PM, Paritosh Ranjan<pr...@xebia.com> wrote:
>
>> Check out the comments on the issue
>>
>> https://issues.apache.org/**jira/browse/MAHOUT-966<https://issues.apache.org/jira/browse/MAHOUT-966>
>>
>>
>> The clustering step was executed using
>>
>> bin/mahout org.apache.mahout.clustering.**syntheticcontrol.meanshift.Job
>> -x 15 -cd 5 -t1 100 -t2 30 -cl -dm org.apache.mahout.common.**distance.**EuclideanDistanceMeasure
>> -i testdata -ow -o output
>>
>> The t1 and t2 values used were t1=100 and t2=30.
>>
>> The values you are using are t1=0.7 and t2=0.5.
>> So, your cluster size is really small, so you are getting 1000 clusters.
>>
>> Changing t1=100 and t2=30 should help.
>>
>>
>> On 19-02-2012 13:30, Tharindu Mathew wrote:
>>
>>> Hi,
>>>
>>> I'm getting $subject when I run the following:
>>>
>>> $ bin/mahout org.apache.mahout.clustering.**syntheticcontrol.meanshift.Job
>>> -x
>>> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
>>> org.apache.mahout.common.**distance.**EuclideanDistanceMeasure -i
>>> testdata -ow
>>> -o output
>>>
>>> $ bin/mahout clusterdump -i output/clusters-1-final -p
>>> output/clusteredPoints -o ./clusteranalyze300112.txt
>>>
>>> I'm trying to reproduce
>>> https://issues.apache.org/**jira/browse/MAHOUT-966with<https://issues.apache.org/jira/browse/MAHOUT-966with>the attached data
>>>
>>> set...
>>>
>>> Is there an additional step involved in preparing the input vector, or
>>> anything else that I'm missing?
>>>
>>>
>
Re: 1000 clusters for 1000 points
Posted by Tharindu Mathew <mc...@gmail.com>.
Hi Paritosh,
I followed the steps in the description... Somehow missed the one in the
comment... Thanks...
Just a small verification... my output's directory says clusters-2-final,
while there are 5 clusters shown in cluster dumper...
what does n mean in clusters-n-final...?
On Sun, Feb 19, 2012 at 1:48 PM, Paritosh Ranjan <pr...@xebia.com> wrote:
> Check out the comments on the issue
>
> https://issues.apache.org/**jira/browse/MAHOUT-966<https://issues.apache.org/jira/browse/MAHOUT-966>
>
>
> The clustering step was executed using
>
> bin/mahout org.apache.mahout.clustering.**syntheticcontrol.meanshift.Job
> -x 15 -cd 5 -t1 100 -t2 30 -cl -dm org.apache.mahout.common.**distance.**EuclideanDistanceMeasure
> -i testdata -ow -o output
>
> The t1 and t2 values used were t1=100 and t2=30.
>
> The values you are using are t1=0.7 and t2=0.5.
> So, your cluster size is really small, so you are getting 1000 clusters.
>
> Changing t1=100 and t2=30 should help.
>
>
> On 19-02-2012 13:30, Tharindu Mathew wrote:
>
>> Hi,
>>
>> I'm getting $subject when I run the following:
>>
>> $ bin/mahout org.apache.mahout.clustering.**syntheticcontrol.meanshift.Job
>> -x
>> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
>> org.apache.mahout.common.**distance.**EuclideanDistanceMeasure -i
>> testdata -ow
>> -o output
>>
>> $ bin/mahout clusterdump -i output/clusters-1-final -p
>> output/clusteredPoints -o ./clusteranalyze300112.txt
>>
>> I'm trying to reproduce
>> https://issues.apache.org/**jira/browse/MAHOUT-966with<https://issues.apache.org/jira/browse/MAHOUT-966with>the attached data
>>
>> set...
>>
>> Is there an additional step involved in preparing the input vector, or
>> anything else that I'm missing?
>>
>>
>
--
Regards,
Tharindu
blog: http://mackiemathew.com/
Re: 1000 clusters for 1000 points
Posted by Paritosh Ranjan <pr...@xebia.com>.
Check out the comments on the issue
https://issues.apache.org/jira/browse/MAHOUT-966
The clustering step was executed using
bin/mahout org.apache.mahout.clustering.syntheticcontrol.meanshift.Job
-x 15 -cd 5 -t1 100 -t2 30 -cl -dm
org.apache.mahout.common.distance.EuclideanDistanceMeasure -i testdata
-ow -o output
The t1 and t2 values used were t1=100 and t2=30.
The values you are using are t1=0.7 and t2=0.5.
So, your cluster size is really small, so you are getting 1000 clusters.
Changing t1=100 and t2=30 should help.
On 19-02-2012 13:30, Tharindu Mathew wrote:
> Hi,
>
> I'm getting $subject when I run the following:
>
> $ bin/mahout org.apache.mahout.clustering.syntheticcontrol.meanshift.Job -x
> 15 -cd 0.05 -t1 0.7 -t2 0.5 -dm
> org.apache.mahout.common.distance.EuclideanDistanceMeasure -i testdata -ow
> -o output
>
> $ bin/mahout clusterdump -i output/clusters-1-final -p
> output/clusteredPoints -o ./clusteranalyze300112.txt
>
> I'm trying to reproduce
> https://issues.apache.org/jira/browse/MAHOUT-966with the attached data
> set...
>
> Is there an additional step involved in preparing the input vector, or
> anything else that I'm missing?
>