powered by
xgboost
xgboost(data, formula, ...)# S3 method for xgb.Booster predict(object, data, ...)
# S3 method for xgb.Booster predict(object, data, ...)
formula
fit <- xgboost(mtcars, hp ~ ., nrounds = 10, save_period = NULL) predict(fit, mtcars)
Run the code above in your browser using DataLab