- sample h before negative phase

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@301 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-06-23 06:45:57 +00:00
parent 605ee4da46
commit b1fcf14e99
+2 -4
View File
@@ -304,6 +304,8 @@ public:
for (gibbs=0; gibbs < m_params.m_numGibbs; gibbs++)
{
sample(h);
// Create visible reconstruction (a fantasy...) given h
toVisibleBatch(m_v, h);
if (m_params.m_useVisibleGaussian)
@@ -326,10 +328,6 @@ public:
toHiddenBatch(h, m_v);
}
}
if (!m_params.m_doRaoBlackwell)
{
sample(h);
}
}
// Update weights (negative phase)