Skip to content

Commit

Permalink
Minor fix on verbose msg
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie2wang committed Jan 5, 2024
1 parent 344d43b commit 3a0e09d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions inst/include/abclass/AbclassNet.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,6 @@ namespace abclass
}
break;
}
if (verbose > 0) {
msg("Outer loop reached the maximum number of iteratons.");
}
}
} else {
// regular coordinate descent
Expand Down Expand Up @@ -351,14 +348,14 @@ namespace abclass
obj0 = obj1;
i++;
}
if (verbose > 0) {
if (num_iter_ < max_iter) {
Rcpp::Rcout << "Outer loop converged after "
<< num_iter_
<< " iteration(s).\n";
} else {
msg("Outer loop reached the maximum number of iteratons.");
}
}
if (verbose > 0) {
if (num_iter_ < max_iter) {
Rcpp::Rcout << "Outer loop converged after "
<< num_iter_
<< " iteration(s).\n";
} else {
msg("Outer loop reached the maximum number of iteratons.");
}
}
}
Expand Down

0 comments on commit 3a0e09d

Please sign in to comment.