Unverified Commit 4eb0745d authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] simplified lgb.check.eval() (#2654)

parent 4075e495
......@@ -246,18 +246,10 @@ lgb.check.eval <- function(params, eval) {
params$metric <- list()
}
# Check if evaluation metric is null, if not then append it
if (!is.null(eval)) {
# Append metric if character or list
# If 'eval' is a list or character vector, store it in 'metric'
if (is.character(eval) || is.list(eval)) {
# Append metrics
params$metric <- append(params$metric, eval)
}
}
# Return parameters
return(params)
}
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