[RBM]
- 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:
+2
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user