View source: R/supervised-xgboost.R
| tl_predict_xgboost | R Documentation |
Predict using an XGBoost model
tl_predict_xgboost(model, new_data, type = "response", ntreelimit = NULL, ...)
model |
A tidylearn XGBoost model object |
new_data |
A data frame containing the new data |
type |
Type of prediction: "response" (default), "prob" (for classification), "class" (for classification) |
ntreelimit |
Limit number of trees used for prediction (default: NULL, uses all trees) |
... |
Additional arguments |
Predictions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.