# \[ANN\] acts\_as\_classifiable plugin

**URL:** <https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966>\
**Category:** Rails\
**Created:** [May 18, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966 "2006-05-18T22:52:54Z")\
**Posts on this page:** 6\
**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:** [May 18, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/1 "2006-05-18T22:52:54Z")

</div>

Hello,  
I am pleased to announce the availability of the plugin  
acts\_as\_classifier  
which allows using the ‘classifier’ gem in a Rails application.

This plugin can be downloaded from

[http://opensvn.csie.org/sksinghi/acts\_as\_classifiable/](http://opensvn.csie.org/sksinghi/acts_as_classifiable/)

This plugin is useful in scenarios where you want to distinguish between  
spam  
or non-spam comments, Or maybe you want to track the preferences of each  
user  
and then based on that make suggestions to them, etc.

More information + example on this can be found at:

[http://cuttingtheredtape.blogspot.com/2006/05/actsasclassifiable.html](http://cuttingtheredtape.blogspot.com/2006/05/actsasclassifiable.html)

Any issues/questions let me know.

–  
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/)  
,----  
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”  
| – Orwell, 1984, 1948  
`----

---

<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:** [May 19, 2006, 5:01am UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/2 "2006-05-19T05:01:40Z")

</div>

Published at [http://agilewebdevelopment.com/plugins/](http://agilewebdevelopment.com/plugins/)  
acts\_as\_classifiable 🙂

–  
Benjamin C.  
[http://www.bencurtis.com/](http://www.bencurtis.com/)  
[http://www.tesly.com/](http://www.tesly.com/) – Collaborative test case management  
[http://www.agilewebdevelopment.com/](http://www.agilewebdevelopment.com/) – Resources for the Rails community

---

<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:** [May 19, 2006, 5:28pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/3 "2006-05-19T17:28:34Z")

</div>

That’s great Surendra.

(having read your posted information) For those of us not familiar  
with Bayesian classifiers, I’m don’t understand how it would be used  
to classify.

You mention training - are we required to implement methods to do the  
classification?

I definetly have some requirements for such a gem, but am unsure how  
I’d go about actually using it.

Thanx again.

Jodi

---

<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:** [May 19, 2006, 6:13pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/4 "2006-05-19T18:13:54Z")

</div>

grin. thanx Peter (i’m the one to usually suggest obvious references.  
lol) . I think that wp entry gave me enough info to start.

ie. the specific application of training and initial classification  
are the keys to usage.

cheers,  
J

---

<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:** [May 19, 2006, 5:57pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/5 "2006-05-19T17:57:13Z")

</div>

> (having read your posted information) For those of us not familiar  
> with Bayesian classifiers, I’m don’t understand how it would be  
> used to classify

> **[Recursive Bayesian estimation](https://en.wikipedia.org/wiki/Bayesian_filter)**
>
> In probability theory, statistics, and machine learning, recursive Bayesian estimation, also known as a Bayes filter, is a general probabilistic approach for estimating an unknown probability density function (PDF) recursively over time using incoming measurements and a mathematical process model. The process relies heavily upon mathematical concepts and models that are theorized within a study of prior and posterior probabilities known as Bayesian statistics.
> A Bayes filter is an algorithm used...

Best regards

Peter De Berdt

---

<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:** [May 19, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/ann-acts-as-classifiable-plugin/60966/6 "2006-05-19T20:06:22Z")

</div>

Jodi S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> grin. thanx Peter (i’m the one to usually suggest obvious references.  
> lol) . I think that wp entry gave me enough info to start.
> 
> ie. the specific application of training and initial classification  
> are the keys to usage.

The current Bayesian classifier gem can do with some sprucing up[1].  
Right  
now, it doesn’t uses prior probabilities, no classification threshold,  
cost-sensitive learning, etc.

But, it should be good for general usage. Also, tuning it do better will  
require some experience with the domain where you are using it.

[1]I posted a message on the classifier gem forum, but haven’t got a  
reply so  
far, maybe I should try sending them a personal email.

Cheers.

–  
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/)  
,----  
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”  
| – Orwell, 1984, 1948  
`----
