- committed local changes

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@270 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-05-28 17:41:06 +00:00
parent 549089a440
commit 7fada2a227
10 changed files with 467 additions and 640 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
class HiddenLayer : public Layer
{
public:
HiddenLayer(uint32_t numUnits = 0, const VectorXd *pStatesInit = nullptr)
HiddenLayer(uint32_t numUnits = 0, const RowVectorXd *pStatesInit = nullptr)
: Layer(numUnits, pStatesInit)
{
}
@@ -28,7 +28,7 @@ private:
{
double sum = ((Weights&)weights).hiddenBias()[index];
sum += layer.states().transpose() * ((Weights&)weights).weights().col(index);
sum += layer.states() * ((Weights&)weights).weights().col(index);
return sum;
}