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