Given a fitted swrc_fit object and a new data frame of soil properties,
returns predicted volumetric water content at each supplied pF (or matric
head) value.
Arguments
- object
A
swrc_fitobject returned byfit_swrc().- newdata
A data frame with the same covariate columns used during training (i.e.
object$x_inputs). Must have amatric_headcolumn or supplypfdirectly.- pf
Optional numeric vector of pF values (overrides
matric_headinnewdata).- heads
Optional numeric vector of matric heads in cm (overrides
matric_headinnewdata).- ...
Ignored.
Examples
if (FALSE) { # \dontrun{
if (reticulate::py_module_available("tensorflow")) {
df <- prepare_swrc_data(swrc_example, depth_col = "depth")
fit <- fit_swrc(df,
x_inputs = c("clay", "silt", "bd_gcm3", "soc", "Depth_num"),
epochs = 2L, verbose = FALSE)
pred <- predict_swrc(fit, newdata = df)
}
} # }
