]> git.sesse.net Git - wloh/commitdiff
Skip 0-150 and 150-0 matches for the purpose of the rating.
authorSteinar H. Gunderson <Steinar H. Gunderson sesse@debian.org>
Sat, 17 Mar 2012 13:02:13 +0000 (14:02 +0100)
committerSteinar H. Gunderson <Steinar H. Gunderson sesse@debian.org>
Sat, 17 Mar 2012 13:02:13 +0000 (14:02 +0100)
train.pl

index d8037db2f615b30b99a8a159aa39cae5092ac9ed..e55f37c307f8489db4c75673af2c1158dcbbb4c9 100755 (executable)
--- a/train.pl
+++ b/train.pl
@@ -47,6 +47,8 @@ WHERE deltager1.Nr > deltager2.nr
 $q->execute($last_season);
 
 while (my $ref = $q->fetchrow_hashref) {
+       next if ($ref->{'maalfor'} == 150 && $ref->{'maalmot'} == 0);
+       next if ($ref->{'maalfor'} == 0 && $ref->{'maalmot'} == 150);
        printf DATA "%d %d %d %d %f\n", $ref->{'p1'}, $ref->{'p2'}, $ref->{'maalfor'}, $ref->{'maalmot'}, $ref->{'vekt'};
 }