Unverified Commit c109a595 authored by david-cortes's avatar david-cortes Committed by GitHub
Browse files

[R-package] change default nrounds to 100 to match LightGBM core library default (#4197)



* use same default arguments as python

* Update R-package/R/lgb.cv.R

Changed.
Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>

* revert change in docs
Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
parent e12409fd
......@@ -72,7 +72,7 @@ CVBooster <- R6::R6Class(
#' @export
lgb.cv <- function(params = list()
, data
, nrounds = 10L
, nrounds = 100L
, nfold = 3L
, label = NULL
, weight = NULL
......
......@@ -49,7 +49,7 @@
#' @export
lgb.train <- function(params = list(),
data,
nrounds = 10L,
nrounds = 100L,
valids = list(),
obj = NULL,
eval = NULL,
......
......@@ -104,7 +104,7 @@ lightgbm <- function(data,
label = NULL,
weight = NULL,
params = list(),
nrounds = 10L,
nrounds = 100L,
verbose = 1L,
eval_freq = 1L,
early_stopping_rounds = NULL,
......
......@@ -7,7 +7,7 @@
lgb.cv(
params = list(),
data,
nrounds = 10L,
nrounds = 100L,
nfold = 3L,
label = NULL,
weight = NULL,
......
......@@ -7,7 +7,7 @@
lgb.train(
params = list(),
data,
nrounds = 10L,
nrounds = 100L,
valids = list(),
obj = NULL,
eval = NULL,
......
......@@ -9,7 +9,7 @@ lightgbm(
label = NULL,
weight = NULL,
params = list(),
nrounds = 10L,
nrounds = 100L,
verbose = 1L,
eval_freq = 1L,
early_stopping_rounds = NULL,
......
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