From 288775cf8c67f2cbfac3c86b2f9a8cdfc07fec11 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Wed, 15 Oct 2014 21:12:22 +0000 Subject: [PATCH] - update working weights after sparse pass git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@28 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- Source/Rbm.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Rbm.hpp b/Source/Rbm.hpp index a42afe1..dd25ee1 100644 --- a/Source/Rbm.hpp +++ b/Source/Rbm.hpp @@ -212,6 +212,7 @@ public: m /= i; th.states().array() = m.array() - m_sparsity; hiddenBiasUpdate(th, -mu); + w = m_w; // cout << "Mean(" << m_sparsity << ") = " << (double)m.array().mean() << endl; // cout << m << endl;