Description Usage Arguments Value Methods (by class)
Score a model with Precision, Recall and F1
1 2 3 4 5 6 7 8 9 10 | score_model(.object, newdata = NULL, actual = NULL, ...)
## S3 method for class 'LDA'
score_model(.object, newdata = NULL, actual = NULL)
## S3 method for class 'nb'
score_model(.object, newdata = NULL, actual = NULL)
## S3 method for class 'train'
score_model(.object, newdata = NULL, actual = NULL)
|
.object |
a model object |
newdata |
an optional new data frame for generating predictions; otherwise score fit on training data |
actual |
an optional vector for the true values; used for assessing predictions on test data |
... |
other parameters passed for scoring |
A list with the Precision, Recall and F1
LDA
: Generate scores for lda models
nb
: Generate scores for naive bayes models
train
: Generate scores for models fit in caret
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.