- 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:
2022-01-21 07:46:40 +00:00
parent c10d9c6e38
commit aef3049856
4 changed files with 80 additions and 57 deletions
+4 -1
View File
@@ -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";
}