Skip to content

Commit 2360a51

Browse files
committed
Adjust validation size
1 parent 5c8205c commit 2360a51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/models/chessmodel.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ struct ChessModel : Model {
5656

5757
this->compile(train_loader.batch_size);
5858

59-
const int val_epoch_size = epoch_size / 10;
60-
61-
Timer t {};
59+
Timer t {};
6260
for (int i = 1; i <= epochs; i++) {
6361
t.start();
6462

@@ -93,7 +91,7 @@ struct ChessModel : Model {
9391
}
9492

9593
// Validation phase
96-
for (int b = 1; b <= val_epoch_size / val_loader.batch_size; b++) {
94+
for (int b = 1; b <= epoch_size / val_loader.batch_size; b++) {
9795
auto* ds = val_loader.next();
9896
setup_inputs_and_outputs(ds);
9997

0 commit comments

Comments
 (0)