-
-
Save mdfarragher/63a4294a93e7830578fa8ad1916ba717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var maxEpochs = 10; | |
var batchSize = 16; | |
var loss = new double[maxEpochs]; | |
var trainingError = new double[maxEpochs]; | |
var testingError = new double[maxEpochs]; | |
var batchCount = 0; | |
for (int epoch = 0; epoch < maxEpochs; epoch++) | |
{ | |
// training and testing code goes here... | |
} | |
// show final results | |
var finalError = testingError[maxEpochs-1]; | |
Console.WriteLine(); | |
Console.WriteLine($"Final test error: {finalError:0.00}"); | |
Console.WriteLine($"Final test accuracy: {1 - finalError:0.00}"); | |
// plotting code goes here... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment