- refactored common functions into matutils
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@855 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+4
-1
@@ -15,7 +15,10 @@
|
||||
#include "StackCreator.hpp"
|
||||
#include <cassert>
|
||||
|
||||
#include "matutils.hpp"
|
||||
|
||||
using namespace std;
|
||||
using namespace Matutils;
|
||||
|
||||
const char *AStack::stackTypeStrings[NUM_STACKTYPES] = {"None", "Deep", "Rnn"};
|
||||
|
||||
@@ -158,7 +161,7 @@ size_t AStack::loadTrainingBatch(const std::string &dir, bool doNormalize)
|
||||
{
|
||||
if (doNormalize)
|
||||
{
|
||||
m_trainingBatch = Rbm::normalize(m_trainingBatch);
|
||||
m_trainingBatch = normalize(m_trainingBatch);
|
||||
}
|
||||
std::cout << "Loaded " << m_trainingBatch.n_rows << " training samples\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user