diff --git a/R-package/R/lgb.Dataset.R b/R-package/R/lgb.Dataset.R index 6f994c42ba2a..9672e4c47845 100644 --- a/R-package/R/lgb.Dataset.R +++ b/R-package/R/lgb.Dataset.R @@ -10,9 +10,6 @@ #' \code{group = c(10, 20, 40, 10, 10, 10)}, that means that you have 6 groups, #' where the first 10 records are in the first group, records 11-30 are in the #' second group, etc. -#' @param info a list of information of the \code{lgb.Dataset} object. NOTE: use of \code{info} -#' is deprecated as of v3.3.0. Use keyword arguments (e.g. \code{init_score = init_score}) -#' directly. #' @keywords internal NULL @@ -52,7 +49,6 @@ Dataset <- R6::R6Class( predictor = NULL, free_raw_data = TRUE, used_indices = NULL, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -66,14 +62,7 @@ Dataset <- R6::R6Class( stop("lgb.Dataset: If provided, predictor must be a ", sQuote("lgb.Predictor")) } - if (length(info) > 0L) { - warning(paste0( - "lgb.Dataset: found fields passed through 'info'. " - , "As of v3.3.0, this behavior is deprecated, and support for it will be removed in a future release. " - , "To suppress this warning, use keyword arguments 'label', 'weight', 'group', or 'init_score' directly" - )) - } - + info <- list() if (!is.null(label)) { info[["label"]] <- label } @@ -113,7 +102,6 @@ Dataset <- R6::R6Class( }, create_valid = function(data, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -148,7 +136,6 @@ Dataset <- R6::R6Class( , predictor = private$predictor , free_raw_data = private$free_raw_data , used_indices = NULL - , info = info , label = label , weight = weight , group = group @@ -599,7 +586,6 @@ Dataset <- R6::R6Class( , predictor = private$predictor , free_raw_data = private$free_raw_data , used_indices = sort(idxset, decreasing = FALSE) - , info = NULL , group = group , init_score = init_score , label = label @@ -826,7 +812,6 @@ lgb.Dataset <- function(data, colnames = NULL, categorical_feature = NULL, free_raw_data = TRUE, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -856,7 +841,6 @@ lgb.Dataset <- function(data, , predictor = NULL , free_raw_data = free_raw_data , used_indices = NULL - , info = info , label = label , weight = weight , group = group @@ -932,7 +916,6 @@ lgb.Dataset <- function(data, #' @export lgb.Dataset.create.valid <- function(dataset, data, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -958,7 +941,6 @@ lgb.Dataset.create.valid <- function(dataset, return(invisible( dataset$create_valid( data = data - , info = info , label = label , weight = weight , group = group diff --git a/R-package/man/lgb.Dataset.Rd b/R-package/man/lgb.Dataset.Rd index ef77e564265e..c93ba85efc7a 100644 --- a/R-package/man/lgb.Dataset.Rd +++ b/R-package/man/lgb.Dataset.Rd @@ -11,7 +11,6 @@ lgb.Dataset( colnames = NULL, categorical_feature = NULL, free_raw_data = TRUE, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -45,10 +44,6 @@ This reduces LightGBM's memory consumption, but it means that the Dataset object cannot be changed after it has been constructed. If you'd prefer to be able to change the Dataset object after construction, set \code{free_raw_data = FALSE}.} -\item{info}{a list of information of the \code{lgb.Dataset} object. NOTE: use of \code{info} -is deprecated as of v3.3.0. Use keyword arguments (e.g. \code{init_score = init_score}) -directly.} - \item{label}{vector of labels to use as the target variable} \item{weight}{numeric vector of sample weights} diff --git a/R-package/man/lgb.Dataset.create.valid.Rd b/R-package/man/lgb.Dataset.create.valid.Rd index aa53f8ab4ef6..cfdb0bf975be 100644 --- a/R-package/man/lgb.Dataset.create.valid.Rd +++ b/R-package/man/lgb.Dataset.create.valid.Rd @@ -7,7 +7,6 @@ lgb.Dataset.create.valid( dataset, data, - info = list(), label = NULL, weight = NULL, group = NULL, @@ -23,10 +22,6 @@ lgb.Dataset.create.valid( a character representing a path to a text file (CSV, TSV, or LibSVM), or a character representing a path to a binary \code{Dataset} file} -\item{info}{a list of information of the \code{lgb.Dataset} object. NOTE: use of \code{info} -is deprecated as of v3.3.0. Use keyword arguments (e.g. \code{init_score = init_score}) -directly.} - \item{label}{vector of labels to use as the target variable} \item{weight}{numeric vector of sample weights} diff --git a/R-package/man/lgb_shared_dataset_params.Rd b/R-package/man/lgb_shared_dataset_params.Rd index acda74a09d96..3e41ff2ce532 100644 --- a/R-package/man/lgb_shared_dataset_params.Rd +++ b/R-package/man/lgb_shared_dataset_params.Rd @@ -16,10 +16,6 @@ to be ranked. For example, if you have a 100-document dataset with \code{group = c(10, 20, 40, 10, 10, 10)}, that means that you have 6 groups, where the first 10 records are in the first group, records 11-30 are in the second group, etc.} - -\item{info}{a list of information of the \code{lgb.Dataset} object. NOTE: use of \code{info} -is deprecated as of v3.3.0. Use keyword arguments (e.g. \code{init_score = init_score}) -directly.} } \description{ Parameter docs for fields used in \code{lgb.Dataset} construction