Commit cadcdf61 authored by Laurae's avatar Laurae Committed by Guolin Ke
Browse files

Fix R package compilation error (#194)

parent 455ba60f
......@@ -243,8 +243,7 @@ Booster <- R6Class(
private$eval_names <- names
private$higher_better_inner_eval <- rep(FALSE, length(names))
for (i in seq_along(names)) {
if (names[i]) == "auc" |
grepl("^ndcg", names[i])) {
if ((names[i] == "auc") | grepl("^ndcg", names[i])) {
private$higher_better_inner_eval[i] <- TRUE
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment