-
-
Save mdfarragher/5045457520a49f4f1599a75550378fe4 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 = 64; | |
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