- improved status report

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@749 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-01-07 13:08:48 +00:00
parent deb5a9ce65
commit ec2b11f7e3
+9 -2
View File
@@ -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<RbmComponent*>(pRbm);
pComp->upPass(pComp->DrawTraining->getData());
pComp->redrawReconstruction();