- cleaned up
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@828 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -141,22 +141,6 @@ bool AStack::saveWeights(const std::string &dir)
|
||||
return true;
|
||||
}
|
||||
|
||||
arma::mat AStack::trainingBatchFrom(size_t layerId, const arma::mat& batch)
|
||||
{
|
||||
arma::mat thisBatch = batch;
|
||||
Layer *pLayer = getLayer(0);
|
||||
while (pLayer)
|
||||
{
|
||||
if (pLayer->id() == layerId)
|
||||
{
|
||||
break;
|
||||
}
|
||||
thisBatch = pLayer->toHiddenProbs(thisBatch);
|
||||
pLayer = pLayer->next;
|
||||
}
|
||||
return thisBatch;
|
||||
}
|
||||
|
||||
arma::mat& AStack::trainingBatch()
|
||||
{
|
||||
return m_trainingBatch;
|
||||
|
||||
Reference in New Issue
Block a user