This function allows to use a raster as data to make predictions from a
variety of tidymodels
objects, such as simple_ensemble
or
stacks::stacks
predict_raster(object, raster, ...)# S3 method for default
predict_raster(object, raster, ...)
a terra::SpatRaster
(or stars
if that is the input) with the
predictions
the tidymodels
object of interest
the terra::SpatRaster
or stars
with the input data. It
has to include levels with the same names as the variables used in object
parameters to be passed to the standard predict()
function for
the appropriate object type (e.g. metric_thresh
or class_thresh
).