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

[R-package] use keyword arguments in internal function calls (#3391)

* [R-package] use keyword arguments in internal function calls

* empty commit
parent 28704900
...@@ -121,7 +121,7 @@ lightgbm <- function(data, ...@@ -121,7 +121,7 @@ lightgbm <- function(data,
# Check whether data is lgb.Dataset, if not then create lgb.Dataset manually # Check whether data is lgb.Dataset, if not then create lgb.Dataset manually
if (!lgb.is.Dataset(dtrain)) { if (!lgb.is.Dataset(dtrain)) {
dtrain <- lgb.Dataset(data, label = label, weight = weight) dtrain <- lgb.Dataset(data = data, label = label, weight = weight)
} }
train_args <- list( train_args <- list(
...@@ -152,7 +152,7 @@ lightgbm <- function(data, ...@@ -152,7 +152,7 @@ lightgbm <- function(data,
) )
# Store model under a specific name # Store model under a specific name
bst$save_model(save_name) bst$save_model(filename = save_name)
return(bst) return(bst)
} }
......
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