- fixed Layer::calcContextBatch() learning current hidden state instead of learning previous hidden state
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@791 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+2
-2
@@ -41,8 +41,8 @@ public:
|
||||
for (int i=1; i < numTraining; i++)
|
||||
{
|
||||
arma::mat h = toHiddenProbs(batch.row(i-1));
|
||||
arma::mat training_with_ctx = arma::join_rows(batch.row(i-1).cols(0, numVisible()-m_numContext-1), h);
|
||||
batch.row(i-1) = training_with_ctx;
|
||||
arma::mat training_with_ctx = arma::join_rows(batch.row(i).cols(0, numVisible()-m_numContext-1), h);
|
||||
batch.row(i) = training_with_ctx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user