- refactored
- compile clean git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@776 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -215,11 +215,11 @@ void RbmComponent::onDraw(DrawComponent &obj)
|
||||
}
|
||||
if (&obj == DrawVisibleTrain)
|
||||
{
|
||||
upDownPass(getTrainingPattern());
|
||||
upDownPass(getTraining());
|
||||
}
|
||||
if (&obj == DrawContextTrain)
|
||||
{
|
||||
upDownPass(getTrainingPattern());
|
||||
upDownPass(getTraining());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,14 +249,14 @@ void RbmComponent::buttonClicked(Button* buttonThatWasClicked)
|
||||
else if (buttonThatWasClicked == m_buttonCopyH2C)
|
||||
{
|
||||
DrawContextTrain->getData() = DrawHidden->getData();
|
||||
upDownPass(getTrainingPattern());
|
||||
upDownPass(getTraining());
|
||||
}
|
||||
}
|
||||
|
||||
void RbmComponent::redrawReconstruction()
|
||||
{
|
||||
RbmComponent *pComp = static_cast<RbmComponent*> (root());
|
||||
pComp->upDownPass(pComp->getTrainingPattern());
|
||||
pComp->upDownPass(pComp->getTraining());
|
||||
}
|
||||
|
||||
void RbmComponent::gibbs(const arma::mat& vc)
|
||||
@@ -277,7 +277,7 @@ void RbmComponent::gibbs(const arma::mat& vc)
|
||||
DrawContextReconst->DrawData();
|
||||
}
|
||||
|
||||
arma::mat RbmComponent::getTrainingPattern() const
|
||||
arma::mat RbmComponent::getTraining() const
|
||||
{
|
||||
return arma::join_rows(DrawVisibleTrain->getData(), DrawContextTrain->getData());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user