View source: R/getPerformance.R
getPerformance | R Documentation |
Get model performance
getPerformance(
rasts,
mods,
metrics = c("AUC", "TSS", "kappa"),
plot = FALSE,
verbosity = 2
)
rasts |
SpatRasterDataset output of |
mods |
output of |
metrics |
character vector with the metrics to compute. Can be any subset (default all) of c("AUC", "TSS", "kappa"), with the latter two computed at their maximum values (optimal thresholds). Performance metrics are computed with presence against all background (using 'modEvA' package functions with pbg=TRUE), so they evaluate the capacity of distinguishing presence from random, rather than presence from absence pixels (Phillips et al., 2006). |
plot |
logical value indicating whether plots should also be produced to illustrate the performance metrics for each model. The default is FALSE; TRUE can be slow for large datasets. |
verbosity |
integer value indicating the amount of messages to display. The default is 2, for the maximum number of messages available. |
This function returns a data frame of the performance evaluation results for each model.
Phillips, S.J., Anderson, R.P., Schapire, R.E. (2006) Maximum entropy modeling of species geographic distributions. Ecological Modelling, 190: 231-259. https://doi.org/10.1016/j.ecolmodel.2005.03.026
# Several data prep steps required.
# See https://github.com/AMBarbosa/ecotrends for a full worked example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.