Description Usage Arguments Details Value Examples
This function creates a new summary metric for model training, specific for unbalanced classes. Inputs as specified in caret.
1 | f_score_calc(data, lev = levels(data$obs), model = NULL)
|
data |
A dataframe of the held-out example cases, with columns for 'obs', 'pred', 'T', 'F'. 'T' and 'F' have the probabilities of each of these classes |
lev |
Outcome factor levels for model |
model |
Character string of model used |
This function returns the F-score for model training optimization. Beta is currently set at 2 - TODO: should make this edit-able in future version.
f_score
1 2 3 4 5 6 | ## Not run:
f_score <- f_score_calc(data, lev, model)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.