- more compact

- added Stack::weights init
- create smaller test.prj

git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@596 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-10-28 22:53:29 +00:00
parent 7a9453594b
commit 595be173b1
5 changed files with 22 additions and 9 deletions
+10
View File
@@ -115,6 +115,16 @@ bool Stack::save()
return true;
}
void Stack::weightsInit(double stddev)
{
Layer *pLayer = m_pLayers;
while(pLayer)
{
pLayer->weightsInit(0, stddev);
pLayer = pLayer->upper;
}
}
bool Stack::loadWeights()
{
Layer *pLayer = m_pLayers;