Switch missing values from 0 to NA in R package

This commit is contained in:
kferris
2015-10-07 18:51:47 -04:00
parent 3109069019
commit 7a94bdb60c
5 changed files with 8 additions and 21 deletions

View File

@@ -59,7 +59,7 @@
#'
#' @export
#'
xgboost <- function(data = NULL, label = NULL, missing = NULL, weight = NULL,
xgboost <- function(data = NULL, label = NULL, missing = NA, weight = NULL,
params = list(), nrounds,
verbose = 1, print.every.n = 1L, early.stop.round = NULL,
maximize = NULL, save_period = 0, save_name = "xgboost.model", ...) {