Skip to content

Instantly share code, notes, and snippets.

@mdfarragher
Created December 2, 2019 12:31
Show Gist options
  • Save mdfarragher/278016e085a55945d6c7611a8dd2d177 to your computer and use it in GitHub Desktop.
Save mdfarragher/278016e085a55945d6c7611a8dd2d177 to your computer and use it in GitHub Desktop.
// set up a trainer and an evaluator
var trainer = network.GetTrainer(learner, lossFunc, errorFunc);
var evaluator = network.GetEvaluator(errorFunc);
// train the model
Console.WriteLine("Epoch\tTrain\tTrain\tTest");
Console.WriteLine("\tLoss\tError\tError");
Console.WriteLine("-----------------------------");
// the rest of the code goes here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment