- Rbm::Status: don't touch err_total until it's computed

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@585 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-10-26 06:28:35 +00:00
parent 28bbff0b45
commit 9fd440e761
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -176,7 +176,6 @@ void Rbm::train(const arma::mat& batch, size_t miniBatchSize, size_t numEpochs,
arma::mat diffErr = miniBatch - vis_probs;
arma::mat diffErr_squared = diffErr % diffErr;
status.err = accu(diffErr_squared)/diffErr_squared.n_elem;
status.err_total = 0;
status.progress += dProgress*miniBatchSizeActual;
if (pListener)
+1 -1
View File
@@ -86,7 +86,7 @@ public:
, trainingSizeRemain(0)
, progress(0)
, err(-1.0)
, err_total(1-0)
, err_total(-1.0)
, L1(-1.0)
, L2(-1.0)
{