- render lower layer weights as linear combination from top weights using up pass of reconstructions

git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@303 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2016-06-29 20:29:17 +00:00
parent 54e4065a00
commit 6e93c07863
4 changed files with 93 additions and 11 deletions
+7 -1
View File
@@ -49,6 +49,8 @@ public:
lower = pObj;
pObj->upper = this;
}
virtual Weights& getTopWeights() = 0;
virtual MatrixXd getAccumulatedWeight(RowVectorXd const &h) = 0;
};
class RbmComponentListener
@@ -77,7 +79,8 @@ class RbmComponent : public Component
{
public:
//==============================================================================
RbmComponent (Weights &weights, MatrixXd const &batch, RbmComponentListener &listener);
RbmComponent (Weights &_weights, MatrixXd const &batch, RbmComponentListener &listener);
RbmComponent (Weights &_weights, RbmComponent *pRbmUpper, RbmComponentListener &listener);
~RbmComponent();
//==============================================================================
@@ -128,6 +131,9 @@ public:
}
}
Weights& getTopWeights() override;
MatrixXd getAccumulatedWeight(RowVectorXd const &h) override;
private:
//[UserVariables] -- You can add your own custom variables in this section.
Weights &m_weights;