View source: R/summarize_roc.R
summarize_dataset | R Documentation |
Calculate a series of metrics describing global and local performance for selected classifiers in a dataset.
summarize_dataset(
data,
predictors = NULL,
response,
ratio,
threshold,
.condition = NULL,
.progress = FALSE
)
data |
A data.frame or extension (e.g. a tibble) containing values for predictors and response variables. |
predictors |
A vector of numeric data variables which represents the different classifiers or predictors in data to be summarized. If |
response |
A data variable which must be a factor, integer or character vector representing the prediction outcome on each observation (Gold Standard). If the variable presents more than two possible outcomes, classes or categories:
New combined category represents the "absence" of the condition to predict.
See |
ratio |
Ratio or axis where to apply calculations.
|
threshold |
A number between 0 and 1, both inclusive, which represents the region bound where to calculate partial area under curve. If If |
.condition |
A value from response that represents class, category or condition of interest which wants to be predicted. If Once the class of interest is selected, rest of them will be collapsed in a common category, representing the "absence" of the condition to be predicted. See |
.progress |
If |
A list with different elements:
Performance metrics for each of evaluated classifiers.
Overall description of performance metrics in the dataset.
summarize_dataset(iris, response = Species, ratio = "tpr", threshold = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.