- improved RBM
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@567 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+3
-2
@@ -16,6 +16,7 @@ class RbmListener : public Rbm::IListener
|
||||
std::cout << "epoch : " << status.epoch << std::endl;
|
||||
std::cout << "trainingSizeRemain: " << status.trainingSizeRemain << std::endl;
|
||||
std::cout << "error (per mini batch) = " << status.err << std::endl;
|
||||
std::cout << "error (total) = " << status.err_total << std::endl;
|
||||
std::cout << "L1 = " << status.L1 << std::endl;
|
||||
std::cout << "L2 = " << status.L2 << std::endl;
|
||||
|
||||
@@ -122,7 +123,7 @@ int main()
|
||||
rbm.train(batch, 100, 100, &statusDisplay);
|
||||
saveWeight("mnist_2.weights.dat", 28, 28, w, bv, bh);
|
||||
arma::mat v = arma::randu(numTraining, numVisible);
|
||||
arma::mat h = rbm.toHidden(v);
|
||||
arma::mat r = rbm.toVisible(h);
|
||||
arma::mat h = rbm.toHiddenProbs(v);
|
||||
arma::mat r = rbm.toVisibleProbs(h);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user