- 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user