You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by qMax <qm...@mediasoft.ru> on 2005/11/18 11:10:40 UTC

collaborative bayes bases

in wiki://BayesInSpamAssassin it is said:
Do not train Bayes on different mail streams or public spam corpora.
These method will mislead Bayes into believing certain tokens are
spammy or hammy when they are not.

Could you explain why it is so, and what could happen if to teach
nayes from several mail servers ?

-- 
 qMax


Re: collaborative bayes bases

Posted by Anthony Peacock <a....@chime.ucl.ac.uk>.
Hi,

> I see. That's a very good point, about sharing the Bayes within a
> different community.
> 
> Anyone see a problem with a single-user collecting spam (and ham) from
> various personal mailboxes that came in from different internet
> service providers and doing a sa-learn on it?

This really depends on your local circumstances.  Are you running 
SpamAssassin purely for your own emails or are you running a server 
for a group of users?

If you are running this purely for your own requirements then you get 
to decide what is and isn't spam, and can use whatever source you 
want to feed the Bayes learning process.

However, if you are running this for a group of users you need to be 
careful that you collect a representative sample of spam and ham for 
your users.  Otherwise you risk skewing the Bayes results to meet 
your personal definition, which might be different to your users.

Of course, if you have personal Bayes scores, then each individual 
can train the system to their taste.





> David Roth
> rothmail (at) comcast (dot) net
> 
> On Nov 18, 2005, at 8:45 AM, Anthony Peacock wrote:
> 
> > Hi,
> >
> > I actually think it is more to do with the fact that one person's
> > spam could be another person's ham.  If the mail streams and servers
> > are carrying messages for a community of users who receive (and want
> > to receive) similar types of email messages, I can't see any major
> > problem with using those emails to train Bayes.  However, if the
> > servers are processing email for two completely different user
> > communities their ideas of what is and isn't spam could be so
> > different that the Bayes stats become diluted.
> >
> > For instance I work for a Medical School, but in a heavily IT based
> > department.  Some terms that may be considered pornographic for
> > someone working in banking could be  perfectly acceptable in my
> > environment.
> >
> >
> >
> >> If I am understanding this correctly...the concern is that the
> > Bayes
> >> should match the mail server in which the ham and spam was received
> >> on only?
> >>
> >> David Roth
> >> rothmail (at) comcast.net (dot) net
> >>
> >> On Nov 18, 2005, at 5:10 AM, qMax wrote:
> >>
> >>> in wiki://BayesInSpamAssassin it is said:
> >>> Do not train Bayes on different mail streams or public spam
> >>> corpora. These method will mislead Bayes into believing certain
> >>> tokens are spammy or hammy when they are not.
> >>>
> >>> Could you explain why it is so, and what could happen if to teach
> >>> nayes from several mail servers ?
> >>>
> >>> -- 
> >>>  qMax
> >>>
> >>
> >
> >
> > -- 
> > Anthony Peacock
> > CHIME, Royal Free & University College Medical School
> > WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> > "Computer  software  consists of  only  two  components:
> > ones and zeros, in roughly equal proportions.   All that is
> > required is to sort them into the correct order."
> >
> >
> 


-- 
Anthony Peacock       
CHIME, Royal Free & University College Medical School
WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
"On two occasions I have been asked [by members of Parliament!],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?'  I am not able rightly to apprehend the
kind of confusion of ideas that could provoke such a
question." -- Charles Babbage



Re: collaborative bayes bases

Posted by "David A. Roth" <ro...@comcast.net>.
I see. That's a very good point, about sharing the Bayes within a 
different community.

Anyone see a problem with a single-user collecting spam (and ham) from 
various personal mailboxes that came in from different internet service 
providers and doing a sa-learn on it?

David Roth
rothmail (at) comcast (dot) net

On Nov 18, 2005, at 8:45 AM, Anthony Peacock wrote:

> Hi,
>
> I actually think it is more to do with the fact that one person's
> spam could be another person's ham.  If the mail streams and servers
> are carrying messages for a community of users who receive (and want
> to receive) similar types of email messages, I can't see any major
> problem with using those emails to train Bayes.  However, if the
> servers are processing email for two completely different user
> communities their ideas of what is and isn't spam could be so
> different that the Bayes stats become diluted.
>
> For instance I work for a Medical School, but in a heavily IT based
> department.  Some terms that may be considered pornographic for
> someone working in banking could be  perfectly acceptable in my
> environment.
>
>
>
>> If I am understanding this correctly...the concern is that the
> Bayes
>> should match the mail server in which the ham and spam was received on
>> only?
>>
>> David Roth
>> rothmail (at) comcast.net (dot) net
>>
>> On Nov 18, 2005, at 5:10 AM, qMax wrote:
>>
>>> in wiki://BayesInSpamAssassin it is said:
>>> Do not train Bayes on different mail streams or public spam corpora.
>>> These method will mislead Bayes into believing certain tokens are
>>> spammy or hammy when they are not.
>>>
>>> Could you explain why it is so, and what could happen if to teach
>>> nayes from several mail servers ?
>>>
>>> -- 
>>>  qMax
>>>
>>
>
>
> -- 
> Anthony Peacock
> CHIME, Royal Free & University College Medical School
> WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
> "Computer  software  consists of  only  two  components:
> ones and zeros, in roughly equal proportions.   All that is
> required is to sort them into the correct order."
>
>


Re: collaborative bayes bases

Posted by Anthony Peacock <a....@chime.ucl.ac.uk>.
Hi,

I actually think it is more to do with the fact that one person's 
spam could be another person's ham.  If the mail streams and servers 
are carrying messages for a community of users who receive (and want 
to receive) similar types of email messages, I can't see any major 
problem with using those emails to train Bayes.  However, if the 
servers are processing email for two completely different user 
communities their ideas of what is and isn't spam could be so 
different that the Bayes stats become diluted.

For instance I work for a Medical School, but in a heavily IT based 
department.  Some terms that may be considered pornographic for 
someone working in banking could be  perfectly acceptable in my 
environment.



> If I am understanding this correctly...the concern is that the 
Bayes
> should match the mail server in which the ham and spam was received on
> only?
> 
> David Roth
> rothmail (at) comcast.net (dot) net
> 
> On Nov 18, 2005, at 5:10 AM, qMax wrote:
> 
> > in wiki://BayesInSpamAssassin it is said:
> > Do not train Bayes on different mail streams or public spam corpora.
> > These method will mislead Bayes into believing certain tokens are
> > spammy or hammy when they are not.
> >
> > Could you explain why it is so, and what could happen if to teach
> > nayes from several mail servers ?
> >
> > -- 
> >  qMax
> >
> 


-- 
Anthony Peacock       
CHIME, Royal Free & University College Medical School
WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/
"Computer  software  consists of  only  two  components: 
ones and zeros, in roughly equal proportions.   All that is
required is to sort them into the correct order."



Re: collaborative bayes bases

Posted by "David A. Roth" <ro...@comcast.net>.
If I am understanding this correctly...the concern is that the Bayes 
should match the mail server in which the ham and spam was received on 
only?

David Roth
rothmail (at) comcast.net (dot) net

On Nov 18, 2005, at 5:10 AM, qMax wrote:

> in wiki://BayesInSpamAssassin it is said:
> Do not train Bayes on different mail streams or public spam corpora.
> These method will mislead Bayes into believing certain tokens are
> spammy or hammy when they are not.
>
> Could you explain why it is so, and what could happen if to teach
> nayes from several mail servers ?
>
> -- 
>  qMax
>