R/sdm_metric_set.R

Defines functions sdm_metric_set

Documented in sdm_metric_set

#' Metric set for SDM
#'
#' This function returns a [yardstick::metric_set] that includes [boyce_cont()],
#' [yardstick::roc_auc()] and [tss_max()], the most commonly used metrics for
#' SDM.
#'
#' @param ... additional metrics to be added to the
#' [`yardstick::metric_set`]. See the help to [yardstick::metric_set()] for
#' constraints on the type of metrics that can be mixed.
#' @returns a [`yardstick::metric_set`] object.
#' @examples
#' sdm_metric_set()
#' sdm_metric_set(accuracy)
#' @export

sdm_metric_set <- function(...) {
  metric_set(boyce_cont, roc_auc, tss_max, ...)
}

Try the tidysdm package in your browser

Any scripts or data that you put into this service are public.

tidysdm documentation built on April 3, 2025, 9:56 p.m.