From ec2b11f7e3b98046e63032f147b40925b3aef9ca Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 7 Jan 2022 13:08:48 +0000 Subject: [PATCH] - improved status report git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@749 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- source/MainComponent.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/MainComponent.cpp b/source/MainComponent.cpp index 86f7226..15a4255 100644 --- a/source/MainComponent.cpp +++ b/source/MainComponent.cpp @@ -903,8 +903,15 @@ void MainComponent::run() bool MainComponent::onProgress(Rbm *pRbm, const Rbm::Status &status) { - printf("[%3u] : Error: %f\n", status.progress, status.err); - + if (status.err_total >= 0) + { + printf("[%3u] : Error total: %f\n", status.progress, status.err_total); + } + else + { + printf("[%3u] : Error: %f\n", status.progress, status.err); + } + RbmComponent *pComp = static_cast(pRbm); pComp->upPass(pComp->DrawTraining->getData()); pComp->redrawReconstruction();