Skip to content

Commit

Permalink
Fix significant bug
Browse files Browse the repository at this point in the history
  • Loading branch information
neurlang authored Oct 18, 2024
1 parent e586dc0 commit a25a0ff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/feedforward/feedforward_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,10 @@ func (f *FeedforwardNetwork) Tally(in, output FeedforwardNetworkInput, worst int
return
}
}
in = inter
for l_post := l + 2; l_post < f.LenLayers(); l_post += 2 {
in, _ = f.Forward(in, l_post, -1, 0)
inter, _ = f.Forward(inter, l_post, -1, 0)
}
predicted[neg] = in
predicted[neg] = inter
}

if !less(predicted[0], output) && !less(predicted[1], output) &&
Expand Down

0 comments on commit a25a0ff

Please sign in to comment.