Predict function for a QRN_seq fitted object
Usage
QRN_seq_predict(
fit_qrn_ts,
X,
Y,
q_level = fit_qrn_ts$interm_lvl,
crop_predictions = FALSE,
device = default_device()
)
Arguments
- fit_qrn_ts
Fitted
"QRN_seq"
object.- X
Matrix of covariates to predict the corresponding response's conditional quantiles.
- Y
Response variable vector corresponding to the rows of
X
.- q_level
Optional, checks that
q_level == fit_qrn_ts$interm_lvl
.- crop_predictions
Whether to crop out the fist
seq_len
observations (which areNA
) from the returned matrix.- device
(optional) A
torch::torch_device()
. Defaults todefault_device()
.