Skip to content

Commit

Permalink
Use Rprintf instead of printf
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Jan 3, 2019
1 parent ea54f13 commit 1e5086a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Starspace/src/starspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ void StarSpace::train() {
auto err = model_->train(trainData_, args_->thread,
t_start, i,
rate, rate - decrPerEpoch);
//printf("\n ---+++ %20s %4d Train error : %3.8f +++--- %c%c%c\n",
// "Epoch", i, err,
// 0xe2, 0x98, 0x83);
Rprintf("\n ---+++ %20s %4d Train error : %3.8f +++--- %c%c%c\n",
"Epoch", i, err,
0xe2, 0x98, 0x83);
if (validData_ != nullptr) {
auto valid_err = model_->test(validData_, args_->thread);
Rcpp::Rcout << "\nValidation error: " << valid_err << endl;
Expand Down

0 comments on commit 1e5086a

Please sign in to comment.