Update utils.R
This commit is contained in:
parent
ae31bc21bc
commit
4db3dfee7d
@ -123,7 +123,7 @@ xgb.get.DMatrix <- function(data, label = NULL, missing = NA, weight = NULL) {
|
|||||||
dtrain <- data
|
dtrain <- data
|
||||||
} else if (inClass == "data.frame") {
|
} else if (inClass == "data.frame") {
|
||||||
stop("xgboost only support numerical matrix input,
|
stop("xgboost only support numerical matrix input,
|
||||||
use 'data.frame' to transform the data.")
|
use 'data.matrix' to transform the data.")
|
||||||
} else {
|
} else {
|
||||||
stop("xgboost: Invalid input of data")
|
stop("xgboost: Invalid input of data")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user