partial.predict {logicDT} | R Documentation |
Alternative prediction function for logic.boosted
models
using up to n.iter
boosting iterations.
An array of predictions for every number of boosting iterations
up to n.iter
is returned.
partial.predict(model, X, Z = NULL, n.iter = 1, ...)
model |
Fitted |
X |
Matrix or data frame of binary input data. This object should correspond to the binary matrix for fitting the model. |
Z |
Optional quantitative covariables supplied as a matrix or data frame. Only used (and required) if the model was fitted using them. |
n.iter |
Maximum number of boosting iterations for prediction |
... |
Parameters supplied to |
The main purpose of this function is to retrieve the optimal number of boosting iterations (early stopping) using a validation data set and to restrict future predictions on this number of iterations.
An array of dimension (N, n.iter)
containing the partial
predictions