@@ -70,7 +70,7 @@ cb.print.evaluation <- function(period = 1, showsd = TRUE) {
70
70
i == env $ begin_iteration ||
71
71
i == env $ end_iteration ) {
72
72
stdev <- if (showsd ) env $ bst_evaluation_err else NULL
73
- msg <- format.eval.string (i , env $ bst_evaluation , stdev )
73
+ msg <- .format_eval_string (i , env $ bst_evaluation , stdev )
74
74
cat(msg , ' \n ' )
75
75
}
76
76
}
@@ -380,7 +380,9 @@ cb.early.stop <- function(stopping_rounds, maximize = FALSE,
380
380
if ((maximize && score > best_score ) ||
381
381
(! maximize && score < best_score )) {
382
382
383
- best_msg <<- format.eval.string(i , env $ bst_evaluation , env $ bst_evaluation_err )
383
+ best_msg <<- .format_eval_string(
384
+ i , env $ bst_evaluation , env $ bst_evaluation_err
385
+ )
384
386
best_score <<- score
385
387
best_iteration <<- i
386
388
best_ntreelimit <<- best_iteration * env $ num_parallel_tree
@@ -754,7 +756,7 @@ xgb.gblinear.history <- function(model, class_index = NULL) {
754
756
#
755
757
756
758
# Format the evaluation metric string
757
- format.eval.string <- function (iter , eval_res , eval_err = NULL ) {
759
+ .format_eval_string <- function (iter , eval_res , eval_err = NULL ) {
758
760
if (length(eval_res ) == 0 )
759
761
stop(' no evaluation results' )
760
762
enames <- names(eval_res )
0 commit comments