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