SharpLearning icon indicating copy to clipboard operation
SharpLearning copied to clipboard

Monitoring training progress

Open SULVAL opened this issue 1 year ago • 1 comments

Hi! Is it possible to monitor "epoch-by-epoch" the training progress of a given algorithm (neural nets, particularly)?

Thanks a lot in advance

SULVAL avatar Apr 24 '24 08:04 SULVAL

Hi @SULVAL,

Yes, most of the learners write some information via Trace.WriteLine. It is a bit simplistic. You can get the information written to a source by adding to trace listeners like this:


// Trace to console
Trace.Listeners.Add(new ConsoleTraceListener()));

// Trace to file.
var streamWriter = new StreamWriter("TrainingLog.txt");
Trace.Listeners.Add(new TextWriterTraceListener(streamWriter)));

Hope this helps.

mdabros avatar Apr 26 '24 13:04 mdabros