Update utils.R
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user