styling of else in R
This commit is contained in:
parent
114cfb2167
commit
ae4128fcb2
@ -15,8 +15,11 @@ xgboost <- function(data = NULL, label = NULL, params = list(), nrounds = 10,
|
||||
dtrain <- data else stop("xgboost: Invalid input of data")
|
||||
}
|
||||
|
||||
if (verbose > 1)
|
||||
silent <- 0 else silent <- 1
|
||||
if (verbose > 1) {
|
||||
silent <- 0
|
||||
} else {
|
||||
silent <- 1
|
||||
}
|
||||
|
||||
params <- append(params, list(silent = silent))
|
||||
params <- append(params, list(...))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user