From 80688502ddca0700df777f46a7a7a9ca055705ab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 11 Oct 2016 14:30:49 +0100 Subject: [PATCH] [Minor] Small fixes about fn/fp ambiguity --- utils/classifier_test.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/classifier_test.pl b/utils/classifier_test.pl index be46e9b00..2dbb4e903 100644 --- a/utils/classifier_test.pl +++ b/utils/classifier_test.pl @@ -431,7 +431,7 @@ sub cross_validate { shuffle_array( \@files_spam ); foreach my $fn (@files_spam) { - my $r = $check_func->( $fn, 1, \$fp_ham, \$fn_ham, \$detected_spam ); + my $r = $check_func->( $fn, 1, \$fp_ham, \$fn_spam, \$detected_spam ); $total_spam += $r; $processed += $r; } @@ -439,7 +439,7 @@ sub cross_validate { shuffle_array( \@files_ham ); foreach my $fn (@files_ham) { - my $r = $check_func->( $fn, 0, \$fp_spam, \$fn_spam, \$detected_ham ); + my $r = $check_func->( $fn, 0, \$fp_spam, \$fn_ham, \$detected_ham ); $total_ham += $r; $processed += $r; } -- 2.39.5