Skip to content

Commit

Permalink
fix silently-ignored parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Aug 28, 2021
1 parent 7f8407e commit ea5ab13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R-package/R/lgb.Booster.R
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ Booster <- R6::R6Class(
#' preds <- predict(model, test$data)
#'
#' # pass other prediction parameters
#' predict(
#' preds <- predict(
#' model,
#' test$data,
#' params = list(
Expand Down
5 changes: 4 additions & 1 deletion R-package/R/lgb.Dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -1145,12 +1145,15 @@ lgb.Dataset.set.categorical <- function(dataset, categorical_feature) {
#'
#' @examples
#' \donttest{
#' # create training Dataset
#' data(agaricus.train, package ="lightgbm")
#' train <- agaricus.train
#' dtrain <- lgb.Dataset(train$data, label = train$label)
#'
#' # create a validation Dataset, using dtrain as a reference
#' data(agaricus.test, package = "lightgbm")
#' test <- agaricus.test
#' dtest <- lgb.Dataset(test$data, test = train$label)
#' dtest <- lgb.Dataset(test$data, label = test$label)
#' lgb.Dataset.set.reference(dtest, dtrain)
#' }
#' @rdname lgb.Dataset.set.reference
Expand Down
5 changes: 4 additions & 1 deletion R-package/man/lgb.Dataset.set.reference.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion R-package/man/predict.lgb.Booster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea5ab13

Please sign in to comment.