assess
Assess the predictions from the SPEAR model using a variety of metrics. Utilizes the 'yardstick' package under the 'tidymodels' umbrella.
Assess the predictions from the SPEAR model using a variety of metrics. Utilizes the 'yardstick' package under the 'tidymodels' umbrella.
assess(data = "train", cv = TRUE, estimator = "macro", metrics = NULL)
Argument |Description
------------- |----------------
data
| Which dataset to use? Can be any dataset listed under $data$____
. Defaults to "train"
.
cv
| If data = "train"
, get factor scores generated from $run.cv.spear
? If $run.spear
was used or if data != "train"
this parameter is ignored. Defaults to TRUE
.
estimator
| Estimator for the yardstick metrics. Can be "macro"
, "micro"
, or "macro_weighted
". Note that some metrics ignore these.
metrics
| A vector of metrics to use. See https://yardstick.tidymodels.org/articles/metric-types.html for all possibilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.