predict_gen {deepregression} | R Documentation |
Generator function for deepregression objects
predict_gen(
object,
newdata = NULL,
batch_size = NULL,
apply_fun = tfd_mean,
convert_fun = as.matrix,
ret_dist = FALSE
)
object |
deepregression model; |
newdata |
data.frame or list; for (optional) new data |
batch_size |
integer; |
apply_fun |
see |
convert_fun |
see |
ret_dist |
logical; whether to return the whole distribution or only the (mean) prediction |
matrix or list of distributions