- prepared for context units
- simplified status report git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@745 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+2
-2
@@ -97,7 +97,7 @@ bool Layer::loadWeights(const string &prjname)
|
||||
result = fscanf(pFile, "%f", &v);
|
||||
if (result > 0)
|
||||
{
|
||||
m_w(i, j) = v;
|
||||
m_whv(i, j) = v;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ bool Layer::saveWeights(const string &prjname)
|
||||
{
|
||||
for (j=0; j < numHidden; j++)
|
||||
{
|
||||
fprintf(pFile, "%3.6f ", m_w(i,j));
|
||||
fprintf(pFile, "%3.6f ", m_whv(i,j));
|
||||
}
|
||||
fprintf(pFile, "\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user