# \[ANN\] acts\_as\_clusterable plugin allows easy clustering of r

**URL:** <https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347>\
**Category:** Rails\
**Created:** [August 24, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347 "2006-08-24T21:06:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [August 24, 2006, 9:06pm UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347/1 "2006-08-24T21:06:59Z")

</div>

Hello,  
I am pleased to announce the availability of the plugin  
acts\_as\_clusterable  
which is available at the following link.

[http://opensvn.csie.org/acts\_as\_clusterable/](http://opensvn.csie.org/acts_as_clusterable/)

This plugin uses the Ruby clusterer gem and makes it easy to cluster  
active\_record models. After installing the plugin add

acts\_as\_clusterable :fields =\> [‘title’,‘text’]

to the models. If no fields are given then it will use all text and  
string  
fields present in the model.

Now, doing clustering is as easy as:

Joke.hierarchical\_clustering()  
Joke.kmeans\_clustering()

More information can be found at  
[http://cuttingtheredtape.blogspot.com/2006/08/actsasclusterable.html](http://cuttingtheredtape.blogspot.com/2006/08/actsasclusterable.html)

Happy hacking,

–  
Surendra S.  
[http://ssinghi.kreeti.com](http://ssinghi.kreeti.com), [http://www.kreeti.com](http://www.kreeti.com)  
Read my blog at: [http://cuttingtheredtape.blogspot.com/](http://cuttingtheredtape.blogspot.com/)  
,----  
| Great wits are sure to madness near allied,  
| And thin partitions do their bounds divide.  
|  
| (John Dryden, Absalom and Achitophel, 1681)  
`----

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [August 24, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347/2 "2006-08-24T23:22:49Z")

</div>

Can someone explain in simple terms what clustering is and why a person  
might use this?

Thanks.

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [August 25, 2006, 12:27am UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347/3 "2006-08-25T00:27:25Z")

</div>

On 8/24/06, Bill [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can someone explain in simple terms what clustering is and why a person  
> might use this?

From [Computer cluster - Wikipedia](http://en.wikipedia.org/wiki/Computer_cluster)  
“A computer cluster is a group of loosely coupled computers that work  
together closely so that in many respects they can be viewed as though  
they are a single computer. Clusters are commonly, but not always,  
connected through fast local area networks. Clusters are usually  
deployed to improve speed and/or reliability over that provided by a  
single computer, while typically being much more cost-effective than  
single computers of comparable speed or reliability.”

So basically in web serving terms. You use clusters of multiple  
computers acting to serve sites as one server. The reason of course is  
that sometimes one server isn’t enough to handle the traffic.

> >

## –

Jon Gretar B.  
[http://www.jongretar.net/](http://www.jongretar.net/)

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [August 25, 2006, 12:33am UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347/4 "2006-08-25T00:33:26Z")

</div>

On 8/24/06, Jon Gretar B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On 8/24/06, Bill [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Can someone explain in simple terms what clustering is and why a person  
> > might use this?

Ohhh. Sorry. I didn’t see the original post so I misunderstood the  
question. For some reason the original message you were replying to  
wasn’t in the same thread. Happens a lot in this new googlegroups. I  
just saw your message and replied out of context.

## –

Jon Gretar B.  
[http://www.jongretar.net/](http://www.jongretar.net/)

---

<div class="post-metadata">

**Author:** ![surendra\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@surendra\_s](https://www.ruby-forum.com/u/surendra_s)\
**Post date:** [August 25, 2006, 9:02am UTC](https://www.ruby-forum.com/t/ann-acts-as-clusterable-plugin-allows-easy-clustering-of-r/66347/5 "2006-08-25T09:02:12Z")

</div>

On Aug 24, 2006, at 5:22 PM, Bill wrote:

> Can someone explain in simple terms what clustering is and why a  
> person might use this?

cluster analysis refers to a number of statistical techniques for  
exploratory data analysis. given n (large) objects, you can group  
them into m (m \<\< n) groups of “similar” objects so you can perform  
statistical studies of the groups.

[http://www.statsoft.com/textbook/stcluan.html](http://www.statsoft.com/textbook/stcluan.html)

-faisal
