Skip to content

Commit

Permalink
Merge branch 'altrep' into model_as_first_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Dec 31, 2023
2 parents d787b28 + b5ec14e commit cfd7c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R-package/R/xgb.Booster.R
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ xgb.config <- function(object) {

#' @rdname getinfo
#' @export
getinfo.xgb.Booster <- function(object, name, ...) {
getinfo.xgb.Booster <- function(object, name) {
name <- as.character(head(name, 1L))
allowed_fields <- c("feature_name", "feature_type")
if (!(name %in% allowed_fields)) {
Expand All @@ -670,7 +670,7 @@ getinfo.xgb.Booster <- function(object, name, ...) {

#' @rdname getinfo
#' @export
setinfo.xgb.Booster <- function(object, name, info, ...) {
setinfo.xgb.Booster <- function(object, name, info) {
name <- as.character(head(name, 1L))
allowed_fields <- c("feature_name", "feature_type")
if (!(name %in% allowed_fields)) {
Expand Down

0 comments on commit cfd7c4d

Please sign in to comment.