mae {ModelMetrics} | R Documentation |
Calculates the mean absolute error
mae(...)
## Default S3 method:
mae(actual, predicted, ...)
## S3 method for class 'glm'
mae(modelObject, ...)
## S3 method for class 'randomForest'
mae(modelObject, ...)
## S3 method for class 'glmerMod'
mae(modelObject, ...)
## S3 method for class 'gbm'
mae(modelObject, ...)
## S3 method for class 'rpart'
mae(modelObject, ...)
... |
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 |