- Rbm::onProgress provides object to itself
- MainComponentz is Rbm::IListener git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@635 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+3
-3
@@ -81,7 +81,7 @@ void Rbm::train(const arma::mat& batch, IListener* pListener)
|
||||
|
||||
if (pListener)
|
||||
{
|
||||
pListener->onProgress(status);
|
||||
pListener->onProgress(this, status);
|
||||
}
|
||||
|
||||
while (status.trainingSizeRemain)
|
||||
@@ -181,7 +181,7 @@ void Rbm::train(const arma::mat& batch, IListener* pListener)
|
||||
|
||||
if (pListener)
|
||||
{
|
||||
if(!pListener->onProgress(status))
|
||||
if(!pListener->onProgress(this, status))
|
||||
{
|
||||
break;
|
||||
}
|
||||
@@ -197,7 +197,7 @@ void Rbm::train(const arma::mat& batch, IListener* pListener)
|
||||
|
||||
if (pListener)
|
||||
{
|
||||
pListener->onProgress(status);
|
||||
pListener->onProgress(this, status);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user