Skip to content

Commit

Permalink
+mnist verify on training data
Browse files Browse the repository at this point in the history
  • Loading branch information
lnashier committed Apr 23, 2024
1 parent 3915254 commit 808f288
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/feedforward/mnist/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ func Build(ctx context.Context, args []string) {
}
}

// verify on training data
inputs, targets, err := readData(args[0], args[1])
if err != nil {
panic(err)
}
test(ctx, nn, inputs, targets)

unseenInputs, unseenTargets, err := readData(args[2], args[3])
if err != nil {
panic(err)
Expand Down

0 comments on commit 808f288

Please sign in to comment.