"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "187135051572bafa57f4a0ed25d4bca348dedb8d"
Unverified Commit a8fae81f authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] remove defaults in internal functions (#4361)

parent 24ac9208
......@@ -111,7 +111,7 @@ cb.reset.parameters <- function(new_params) {
}
# Format the evaluation metric string
format.eval.string <- function(eval_res, eval_err = NULL) {
format.eval.string <- function(eval_res, eval_err) {
# Check for empty evaluation string
if (is.null(eval_res) || length(eval_res) == 0L) {
......@@ -158,7 +158,7 @@ merge.eval.string <- function(env) {
}
cb.print.evaluation <- function(period = 1L) {
cb.print.evaluation <- function(period) {
# Create callback
callback <- function(env) {
......@@ -271,7 +271,7 @@ cb.record.evaluation <- function() {
}
cb.early.stop <- function(stopping_rounds, first_metric_only = FALSE, verbose = TRUE) {
cb.early.stop <- function(stopping_rounds, first_metric_only, verbose) {
factor_to_bigger_better <- NULL
best_iter <- NULL
......
......@@ -509,7 +509,7 @@ generate.cv.folds <- function(nfold, nrows, stratified, label, group, params) {
# It was borrowed from caret::createFolds and simplified
# by always returning an unnamed list of fold indices.
#' @importFrom stats quantile
lgb.stratified.folds <- function(y, k = 10L) {
lgb.stratified.folds <- function(y, k) {
## Group the numeric data based on their magnitudes
## and sample within those groups.
......
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