Skip to content

Commit

Permalink
Update examples/mnist/mnist-common.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Georgi Gerganov <[email protected]>
  • Loading branch information
JohannesGaessler and ggerganov authored Sep 16, 2024
1 parent d07b6e3 commit c1d13df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/mnist/mnist-common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void mnist_model_train(mnist_model & model, const float * images, const float *
const std::pair<double, double> loss = mnist_loss(result_val);
const std::pair<double, double> acc = mnist_accuracy(result_val, labels + iex_split*MNIST_NCLASSES);

fprintf(stderr, ", val_loss=%.6lf+-%.6lf, train_acc=%.2f+-%.2f%%", loss.first, loss.second, 100.0*acc.first, 100.0*acc.second);
fprintf(stderr, ", val_loss=%.6lf+-%.6lf, val_acc=%.2f+-%.2f%%", loss.first, loss.second, 100.0*acc.first, 100.0*acc.second);
}
fprintf(stderr, "\n");
}
Expand Down

0 comments on commit c1d13df

Please sign in to comment.