Nothing
#' Display the names of the measures used in CV for different families
#'
#' Produces a list of names of measures that can be used in CV for different
#' families. Note, however, that the package does not check if the measure
#' the user specifies is appropriate for the family.
#'
#' @param family If a family is supplied, a list of the names of
#' measures available for that family are produced. Default is "all", in which
#' case the names of measures for all families are produced.
#'
#' @return If `family = "all"`, a list of names of measures that can be used
#' in CV for each family; otherwise, a vector of names of measures that can
#' be used for the family passed as the parameter.
#'
#' @export
availableTypeMeasures <- function(family = c("all", "gaussian", "binomial",
"poisson", "multinomial", "cox",
"mgaussian", "GLM")) {
family <- match.arg(family)
type.measures <- c("mse", "deviance", "class", "auc", "mae", "C")
choices <- list(gaussian = c("deviance", "mse", "mae"),
binomial = c("deviance", "class", "auc", "mse", "mae"),
poisson = c("deviance", "mse", "mae"),
cox = c("deviance", "C"),
multinomial = c("deviance", "class", "mse", "mae"),
mgaussian = c("deviance", "mse", "mae"),
GLM = c("deviance", "mse", "mae"))
if (family == "all") {
return(choices)
} else {
return(choices[[family]])
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.