From 9593aea278c9cf35649ab3df71a1f31b3adea46a Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 11 Nov 2019 20:41:01 +0000 Subject: [PATCH] - some info log during training load/save git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@659 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- source/Stack.cpp | 2 ++ source/main.cpp | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Stack.cpp b/source/Stack.cpp index 8644e98..61b0afe 100644 --- a/source/Stack.cpp +++ b/source/Stack.cpp @@ -262,6 +262,7 @@ size_t Stack::loadTraining() } } fclose(pFile); + std::cout << "Loaded " << numTraining << " training samples\n"; return numTraining; } @@ -291,6 +292,7 @@ size_t Stack::saveTraining() fclose(pFile); + std::cout << "Saved " << m_trainingData.n_rows << " training samples\n"; return m_trainingData.n_rows; } diff --git a/source/main.cpp b/source/main.cpp index 7473617..34b27e3 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -84,13 +84,11 @@ int main() stack.loadTraining(); - printf("Loaded %d training samples\n", (int)stack.trainingData().n_rows); - stack.addTraining(stack.trainingData().row(1)); - printf("Loaded %d training samples\n", (int)stack.trainingData().n_rows); + printf("There are %d training samples\n", (int)stack.trainingData().n_rows); stack.delTraining(0); - printf("Loaded %d training samples\n", (int)stack.trainingData().n_rows); + printf("There are %d training samples\n", (int)stack.trainingData().n_rows); #if 1 const int numLayers = 4;