[RBM]
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user