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( ...@@ -72,7 +72,7 @@ CVBooster <- R6::R6Class(
#' @export #' @export
lgb.cv <- function(params = list() lgb.cv <- function(params = list()
, data , data
, nrounds = 10L , nrounds = 100L
, nfold = 3L , nfold = 3L
, label = NULL , label = NULL
, weight = NULL , weight = NULL
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#' @export #' @export
lgb.train <- function(params = list(), lgb.train <- function(params = list(),
data, data,
nrounds = 10L, nrounds = 100L,
valids = list(), valids = list(),
obj = NULL, obj = NULL,
eval = NULL, eval = NULL,
......
...@@ -104,7 +104,7 @@ lightgbm <- function(data, ...@@ -104,7 +104,7 @@ lightgbm <- function(data,
label = NULL, label = NULL,
weight = NULL, weight = NULL,
params = list(), params = list(),
nrounds = 10L, nrounds = 100L,
verbose = 1L, verbose = 1L,
eval_freq = 1L, eval_freq = 1L,
early_stopping_rounds = NULL, early_stopping_rounds = NULL,
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
lgb.cv( lgb.cv(
params = list(), params = list(),
data, data,
nrounds = 10L, nrounds = 100L,
nfold = 3L, nfold = 3L,
label = NULL, label = NULL,
weight = NULL, weight = NULL,
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
lgb.train( lgb.train(
params = list(), params = list(),
data, data,
nrounds = 10L, nrounds = 100L,
valids = list(), valids = list(),
obj = NULL, obj = NULL,
eval = NULL, eval = NULL,
......
...@@ -9,7 +9,7 @@ lightgbm( ...@@ -9,7 +9,7 @@ lightgbm(
label = NULL, label = NULL,
weight = NULL, weight = NULL,
params = list(), params = list(),
nrounds = 10L, nrounds = 100L,
verbose = 1L, verbose = 1L,
eval_freq = 1L, eval_freq = 1L,
early_stopping_rounds = NULL, 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