]> git.sesse.net Git - wloh/commitdiff
Also ignore 150-150 matches when training model.
authorSteinar H. Gunderson <Steinar H. Gunderson sesse@debian.org>
Sat, 17 Mar 2012 18:21:54 +0000 (19:21 +0100)
committerSteinar H. Gunderson <Steinar H. Gunderson sesse@debian.org>
Sat, 17 Mar 2012 18:21:54 +0000 (19:21 +0100)
train.pl

index 95dcd06208b61f87bfadcafb3093d68407ae9144..22a2741ccb8b12a71a81d1d9c065461cc4f00dd3 100755 (executable)
--- a/train.pl
+++ b/train.pl
@@ -49,6 +49,7 @@ $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);
+       next if ($ref->{'maalfor'} == 150 && $ref->{'maalmot'} == 150);
        printf DATA "%d %d %d %d %f\n", $ref->{'p1'}, $ref->{'p2'}, $ref->{'maalfor'}, $ref->{'maalmot'}, $ref->{'vekt'};
 }