From d739cf2911d9f6e3868537ef27eec5a344fd0fdf Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 21 Sep 2023 14:43:34 +0900 Subject: [PATCH] Disable debug code --- src/word2vec/lib/trainer.cpp | 6 +++--- src/word2vec/lib/word2vec.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/word2vec/lib/trainer.cpp b/src/word2vec/lib/trainer.cpp index f2acfce..22f6216 100644 --- a/src/word2vec/lib/trainer.cpp +++ b/src/word2vec/lib/trainer.cpp @@ -63,9 +63,9 @@ namespace w2v { // } else { m_matrixSize = sharedData.trainSettings->size * sharedData.vocabulary->size(); //} - Rcpp::Rcout << "corpus->texts.size(): " << sharedData.corpus->texts.size() << "\n"; - Rcpp::Rcout << "vocabulary->size(): " << sharedData.vocabulary->size() << "\n"; - Rcpp::Rcout << "_trainSettings->threads: " << (int)_trainSettings->threads << "\n"; + //Rcpp::Rcout << "corpus->texts.size(): " << sharedData.corpus->texts.size() << "\n"; + //Rcpp::Rcout << "vocabulary->size(): " << sharedData.vocabulary->size() << "\n"; + //Rcpp::Rcout << "_trainSettings->threads: " << (int)_trainSettings->threads << "\n"; for (uint8_t i = 0; i < _trainSettings->threads; ++i) { // trainThread_t t(i, sharedData); // Rcpp::Rcout << "thread: " << (int)i << " from " << t.range.first << " to " << t.range.second << "\n"; diff --git a/src/word2vec/lib/word2vec.cpp b/src/word2vec/lib/word2vec.cpp index 1a32bfc..ea717a3 100644 --- a/src/word2vec/lib/word2vec.cpp +++ b/src/word2vec/lib/word2vec.cpp @@ -63,7 +63,7 @@ namespace w2v { corpus, trainWordsMapper, // NOTE: remove _trainProgressCallback)(_trainMatrix); - Rcpp::Rcout << "_trainMatrix: " << _trainMatrix.size() << "\n"; + //Rcpp::Rcout << "_trainMatrix: " << _trainMatrix.size() << "\n"; std::size_t wordIndex = 0; for (auto const &i:words) {