ce {ModelMetrics} | R Documentation |
Classification error
Description
Calculates the classification error
Usage
ce(...)
## Default S3 method:
ce(actual, predicted, ...)
## S3 method for class 'lm'
ce(modelObject, ...)
## S3 method for class 'glm'
ce(modelObject, ...)
## S3 method for class 'randomForest'
ce(modelObject, ...)
## S3 method for class 'glmerMod'
ce(modelObject, ...)
## S3 method for class 'gbm'
ce(modelObject, ...)
## S3 method for class 'rpart'
ce(modelObject, ...)
Arguments
... |
additional parameters to be passed the the s3 methods |
actual |
A vector of the labels |
predicted |
A vector of predicted values |
modelObject |
the model object. Currently supported |
[Package ModelMetrics version 1.2.2.2 Index]