score_model: Score a model with Precision, Recall and F1

Description Usage Arguments Value Methods (by class)

Description

Score a model with Precision, Recall and F1

Usage

 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)

Arguments

.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

Value

A list with the Precision, Recall and F1

Methods (by class)


michaelquinn32/adventureR documentation built on May 22, 2019, 9:52 p.m.