Skip to content

Commit

Permalink
Disable debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
koheiw committed Sep 21, 2023
1 parent a4d36ba commit d739cf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/word2vec/lib/trainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/word2vec/lib/word2vec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d739cf2

Please sign in to comment.