- correct energy calc. for BB-RBMs

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@39 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-10-25 15:34:12 +00:00
parent 025a45eb83
commit 6b2fe10d05
5 changed files with 14 additions and 41 deletions
-9
View File
@@ -23,15 +23,6 @@ public:
{
}
double getEnergy(const Weights &weights)
{
double energy;
energy = -((Weights&)weights).visibleBias().transpose() * states();
return energy;
}
private:
double accum(Layer &layer, Weights &weights, uint32_t index)
{