predict.uforest | R Documentation |
Obtains predictions from a fitted uforest
object.
## S3 method for class 'uforest' predict(object, newdata, ntrees = NULL, type = "uplift", agg.fun = "mean", ...)
object |
A fitted object inheriting from |
newdata |
A data frame to predict on. |
ntrees |
Number of trees used in prediction. All fitted trees are used by default. |
type |
The type of predictions required. Only uplift predictions are allowed. |
agg.fun |
The function used to combine the predictions from the
individual trees. Must be functions that operate on a vector and produce a
single value, as |
... |
Additional arguments passed to |
A numeric vector of predictions.
Leo Guelman leo.guelman@gmail.com
uforest
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.