Skip to content

Commit

Permalink
remove lgb.convert()
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Aug 5, 2020
1 parent e843eca commit db27920
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 492 deletions.
2 changes: 0 additions & 2 deletions R-package/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export(lgb.Dataset.create.valid)
export(lgb.Dataset.save)
export(lgb.Dataset.set.categorical)
export(lgb.Dataset.set.reference)
export(lgb.convert)
export(lgb.convert_with_rules)
export(lgb.cv)
export(lgb.dump)
Expand Down Expand Up @@ -43,7 +42,6 @@ importFrom(R6,R6Class)
importFrom(data.table,":=")
importFrom(data.table,as.data.table)
importFrom(data.table,data.table)
importFrom(data.table,is.data.table)
importFrom(data.table,rbindlist)
importFrom(data.table,set)
importFrom(data.table,setnames)
Expand Down
159 changes: 0 additions & 159 deletions R-package/R/lgb.convert.R

This file was deleted.

4 changes: 2 additions & 2 deletions R-package/R/lgb.convert_with_rules.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#' in factors and characters will be filled with 0L. Missing values in logicals
#' will be filled with -1L.
#'
#' Unlike \code{\link{lgb.convert}}, this function returns and optionally takes
#' in "rules" the describe exactly how to convert values in columns.
#' This function returns and optionally takes in "rules" the describe exactly
#' how to convert values in columns.
#'
#' Columns that contain only NA values will be converted by this function but will
#' not show up in the returned \code{rules}.
Expand Down
4 changes: 2 additions & 2 deletions R-package/R/removed.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @param ... catch-all too match old calls
#' @export
lgb.prepare <- function(...) {
stop("lgb.prepare() was removed in LightGBM 3.0.0. Please use lgb.convert()")
stop("lgb.prepare() was removed in LightGBM 3.0.0. Please use lgb.convert_with_rules()")
}

#' @title removed functions
Expand All @@ -13,7 +13,7 @@ lgb.prepare <- function(...) {
#' @param ... catch-all too match old calls
#' @export
lgb.prepare2 <- function(...) {
stop("lgb.prepare2() was removed in LightGBM 3.0.0. Please use lgb.convert()")
stop("lgb.prepare2() was removed in LightGBM 3.0.0. Please use lgb.convert_with_rules()")
}

#' @title removed functions
Expand Down
88 changes: 0 additions & 88 deletions R-package/demo/categorical_features_prepare.R

This file was deleted.

51 changes: 0 additions & 51 deletions R-package/man/lgb.convert.Rd

This file was deleted.

4 changes: 2 additions & 2 deletions R-package/man/lgb.convert_with_rules.Rd

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

1 change: 0 additions & 1 deletion R-package/pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ reference:
- '`lgb.Dataset.save`'
- '`lgb.Dataset.set.categorical`'
- '`lgb.Dataset.set.reference`'
- '`lgb.convert`'
- '`lgb.convert_with_rules`'
- title: Machine Learning
desc: Train models with LightGBM
Expand Down
Loading

0 comments on commit db27920

Please sign in to comment.