diff --git a/Source/Rbm.hpp b/Source/Rbm.hpp index 6077548..50e3de2 100644 --- a/Source/Rbm.hpp +++ b/Source/Rbm.hpp @@ -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)