|
From: <jgr...@us...> - 2003-09-10 04:04:30
|
Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv29933/Classifier
Modified Files:
Bayes.pm
Log Message:
Remove some useless code
Index: Bayes.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v
retrieving revision 1.190
retrieving revision 1.191
diff -C2 -d -r1.190 -r1.191
*** Bayes.pm 10 Sep 2003 03:54:14 -0000 1.190
--- Bayes.pm 10 Sep 2003 04:04:27 -0000 1.191
***************
*** 840,844 ****
foreach my $word (keys %{$self->{parser__}->{words__}}) {
$word_count += 2;
- my $wmax = -10000;
foreach my $bucket (@buckets) {
--- 840,843 ----
***************
*** 847,851 ****
$matchcount{$bucket} += $self->{parser__}{words__}{$word} if ($probability != 0);
$probability = $self->{not_likely__} if ( $probability == 0 );
- $wmax = $probability if ( $wmax < $probability );
# Here we are doing the bayes calculation: P(word|bucket) is in probability
--- 846,849 ----
|