For each observation in the raster, the function returns an explanation of the model prediction using selected implementation of the LIME (Local Interpretable Model-agnostic Explanations) method.
Arguments
- explainer
a model to be explained, preprocessed by the
DALEX::explain()function- raster_obs
a SpatRaster object with the observations to be explained (predictors used in the model)
- maxcell
the maximum number of cells in the raster. If the number of cells in the raster is greater than
maxcell, the function will samplemaxcellcells from the raster. By default 1000- ...
additional parameters passed to the
DALEXtra::predict_surrogate()function- type
the type of the LIME method implementation. Possible values are:
"localModel"(default),"iml", and"lime"
