- probsUpdateLogistic() use var for multiplication

- automatic pattern reconstruction on pattern slider. Test button is obsolete
- revised sparse mode

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@27 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-10-15 20:35:49 +00:00
parent 005342e829
commit afc1853664
3 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -210,9 +210,11 @@ public:
m += th.probs();
}
m /= i;
m.array() -= m_sparsity;
th.states() = m;
th.states().array() = m.array() - m_sparsity;
hiddenBiasUpdate(th, -mu);
// cout << "Mean(" << m_sparsity << ") = " << (double)m.array().mean() << endl;
// cout << m << endl;
}
if (sigma > sigmaMin)
{