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